Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB ...
func (*DB) Lock ¶
Lock obtains a write lock to the database (sqlite only) and executes a function. Any error that is returned from the function is returned from the Lock() method.
func (*DB) Update ¶
Update executes a function within the context of a read-write managed transaction. If no error is returned from the function then the transaction is committed. If an error is returned then the entire transaction is rolled back. Any error that is returned from the function or returned from the commit is returned from the Update() method.
type Execer ¶
Execer interface defines a set of methods for executing read and write commands against the database.
type MigratorFunc ¶
MigratorFunc represnts a migration for a database
type MySQLInfo ¶
type MySQLInfo struct { Username string Password string Name string Hostname string Port int Parameter string }
MySQLInfo is the details for the database connection