Documentation ¶ Index ¶ type Config type Driver func New(cfg Config) *Driver func (d *Driver) Dialect() dialect.Dialect func (d *Driver) Name() string func (d *Driver) Open(ctx context.Context) (*sql.DB, error) func (d *Driver) Validate() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { DSN string DriverName string Host string Port int Database string Username string Password string SSLMode string Timezone string SearchPath string Options map[string]string MaxOpenConns int MaxIdleConns int ConnMaxLifetime time.Duration ConnMaxIdleTime time.Duration } type Driver ¶ type Driver struct { // contains filtered or unexported fields } func New ¶ func New(cfg Config) *Driver func (*Driver) Dialect ¶ func (d *Driver) Dialect() dialect.Dialect func (*Driver) Name ¶ func (d *Driver) Name() string func (*Driver) Open ¶ func (d *Driver) Open(ctx context.Context) (*sql.DB, error) func (*Driver) Validate ¶ func (d *Driver) Validate() error Source Files ¶ View all Source files postgres.go Click to show internal directories. Click to hide internal directories.