Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Host string `yaml:"host"` User string `yaml:"user"` Password string `yaml:"password"` Database string `yaml:"database"` MaxLifetime int `yaml:"max_lifetime"` MinIdleConnections int `yaml:"min_idle_connections"` MaxOpenConnections int `yaml:"max_open_connections"` MaxTransactionRetries int `yaml:"max_transaction_retries"` }
type SQLiteDatabase ¶
type SQLiteDatabase struct {
Database string `yaml:"database"`
}
func NewSQLite ¶
func NewSQLite() *SQLiteDatabase
func (*SQLiteDatabase) Connect ¶
func (c *SQLiteDatabase) Connect() (db.Session, error)
Click to show internal directories.
Click to hide internal directories.