Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDialectDSN ¶
func ParseDialectDSN(inputDSN string) (d schema.DialectType, newDSN string, err error)
ParseDialectDSN parses a DSN and returns the suggested DialectType, as well as a new version of the DSN if applicable. The DSN change is done to support protocol-compatible databases without needing to add support for custom URL schemes to 3rd party packages.
Types ¶
type DB ¶
DB encapsulates a schema.Storage and the (auto-detected) dialect it was configured with
func New ¶
New creates a new DB using the provided DSN. It will auto-detect the dialect based on the DSN and pass that info to NewPgDatabase
func (*DB) DialectType ¶
func (d *DB) DialectType() schema.DialectType
DialectType returns the dialect type the DB was configured with
Click to show internal directories.
Click to hide internal directories.