Documentation ¶
Index ¶
Constants ¶
View Source
const NilVersion int = -1
Variables ¶
View Source
var (
ErrLocked = fmt.Errorf("unable to acquire lock")
)
Functions ¶
Types ¶
type Driver ¶
type Driver interface { Open(url string) (Driver, error) Close() error Lock() error Unlock() error // when version = NilVersion, "deinitialize" // migration can be nil, in that case, just store version Run(version int, migration io.Reader) error // version > 0: regular version // version -1: nil version (const NilVersion) // version < -1: will panic Version() (int, error) Drop() error }
Click to show internal directories.
Click to hide internal directories.