Documentation ¶
Overview ¶
Package postgres wraps github.com/jackc/pgx
Index ¶
- type Adapter
- func (a *Adapter) CanCreateDatabase() bool
- func (a *Adapter) Defaults() db.AdapterDefaults
- func (a *Adapter) DriverName() string
- func (a *Adapter) FormatDSN(c config.DatabaseConfig) (string, error)
- func (a *Adapter) GetLogger() *dlog.Logger
- func (a *Adapter) LoggerIdentity(justCallMe func() dlog.Identity) dlog.Identity
- func (a *Adapter) Placeholders(count int) string
- func (a *Adapter) SetLogger(logger *dlog.Logger)
- type Default
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) CanCreateDatabase ¶
func (*Adapter) Defaults ¶
func (a *Adapter) Defaults() db.AdapterDefaults
func (*Adapter) DriverName ¶
func (*Adapter) LoggerIdentity ¶
func (*Adapter) Placeholders ¶
based on https://github.com/Masterminds/squirrel/blob/v1/placeholder.go
Click to show internal directories.
Click to hide internal directories.