Documentation
¶
Index ¶
- Constants
- func DbConnectionString(config Config) string
- func ErrBeginTransactionFailed(beginErr error) error
- func ErrDBConnectionFailed(connectErr error) error
- func ErrDBDeleteFailed(deleteErr error) error
- func ErrDBInsertFailed(insertErr error) error
- func ErrUnableToSetNode(setErr error) error
- type Config
- type DB
Constants ¶
View Source
const ( DATABASE_NAME = "DATABASE_NAME" DATABASE_HOSTNAME = "DATABASE_HOSTNAME" DATABASE_PORT = "DATABASE_PORT" DATABASE_USER = "DATABASE_USER" DATABASE_PASSWORD = "DATABASE_PASSWORD" DATABASE_MAX_IDLE_CONNECTIONS = "DATABASE_MAX_IDLE_CONNECTIONS" DATABASE_MAX_OPEN_CONNECTIONS = "DATABASE_MAX_OPEN_CONNECTIONS" DATABASE_MAX_CONN_LIFETIME = "DATABASE_MAX_CONN_LIFETIME" )
Env variables
View Source
const ( BeginTransactionFailedMsg = "failed to begin transaction" DbConnectionFailedMsg = "db connection failed" DeleteQueryFailedMsg = "delete query failed" InsertQueryFailedMsg = "insert query failed" SettingNodeFailedMsg = "unable to set db node" )
Variables ¶
This section is empty.
Functions ¶
func DbConnectionString ¶
func ErrDBConnectionFailed ¶
func ErrDBDeleteFailed ¶
func ErrDBInsertFailed ¶
func ErrUnableToSetNode ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.