package
Version:
v0.1.14
Opens a new window with list of versions in this module.
Published: Jan 6, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Migrate updates database schema to new version.
New returns newly created database connection.
type Base interface {
Healthy() bool
Update(model interface{}) error
Insert(model interface{}) error
Select(
model interface{},
limit int,
condition string,
params ...interface{},
) error
}
Base interface makes handlers testable.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.