good morning!!!!

Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

gosexy/db/postgresql

This driver is a wrapper of pq. In order to work with gosexy/db the original driver had to be forked as the changes made to it are incompatible with some of pq's own features.

Installation

$ go get github.com/xiam/gosexy/db/postgresql

Usage

import (
  "github.com/xiam/gosexy/db"
  "github.com/xiam/gosexy/db/postgresql"
)

Connecting to a PostgreSQL database

sess := postgresql.Session(db.DataSource{Host: "127.0.0.1"})

err := sess.Open()
defer sess.Close()

Read full documentation and examples on the gosexy/db manual.