Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCantDetectUSer is the error used to notify that a default username is not found // in the system to be used as database username. ErrCantDetectUSer = errors.New("could not detect default username") // ErrInvalidPostgresURLFormat is the error used to notify that the postgres given url is not valid. ErrInvalidPostgresURLFormat = errors.New("invalid url - valid format: postgres://user:password@host:port/db?sslmode=mode") // ErrInvalidMySQLURLFormat is the error used to notify that the given mysql url is not valid. ErrInvalidMySQLURLFormat = errors.New("invalid url - valid format: mysql://user:password@tcp(host:port)/db") // ErrInvalidURLFormat is used to notify the url is invalid. ErrInvalidURLFormat = errors.New("invalid url") // ErrInvalidDriver is used to notify that the provided driver is not supported. ErrInvalidDriver = errors.New("invalid driver") // ErrInvalidSqlite3Extension is used to notify that the selected file is not a sqlite3 file. ErrInvalidSqlite3Extension = errors.New("invalid sqlite file extension") // ErrSocketFileDoNotExist indicates that the given path to the socket files leads to no file. ErrSocketFileDoNotExist = errors.New("socket file does not exist") // ErrInvalidSocketFile indicates that the socket file must end with .sock as suffix. ErrInvalidSocketFile = errors.New("invalid socket file - must end with .sock") )
Functions ¶
func BuildConnectionFromOpts ¶
BuildConnectionFromOpts return the connection uri string given the options passed by the uses.
func ValidateOpts ¶
ValidateOpts make sure the important fields used to open a connection aren't empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.