Documentation ¶ Index ¶ func BuildDSN(host, port, user, password, dbname, sslmode string) string func Session(pool *sql.DB) (db.Session, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func BuildDSN ¶ func BuildDSN(host, port, user, password, dbname, sslmode string) string Build a data source name string. If sslmode is empty we fall back to "prefer" — pgx rejects an empty value, and "prefer" is the safest default (tries SSL, falls back to plain TCP if the server doesn't support it). func Session ¶ func Session(pool *sql.DB) (db.Session, error) Create a new Postgres builder session Types ¶ This section is empty. Source Files ¶ View all Source files postgresdriver.go Click to show internal directories. Click to hide internal directories.