Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
GetConfig creates configuration object from configuration dict. it checks and returns error if not all options have valid values.
The parsed config options are:
- database: (string) the database name - REQUIRED
- host: (string) the database server IP or FQDN - REQUIRED
- port: (int) the database server port number - REQUIRED
- username: (string) the database access username (if any)
- password: (string) the database access password (if any)
- args: (string) the database extra connection params.
func InteractiveConfig ¶
InteractiveConfig gets the database configuration interactively from console. The database default options are detailed in GetConfig
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine represents the backend engine structure.
func (*Engine) CanRetryErr ¶
CanRetryErr checks weather an operation error type can be retried.
Click to show internal directories.
Click to hide internal directories.