database

package
v0.0.0-...-767f10d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLocked = fmt.Errorf("cannot acquire lock")
	ErrFailed = fmt.Errorf("execute sql failed")
)

Functions

func Register

func Register(n string, d Driver)

Types

type Driver

type Driver interface {
	Open(uri string) (Driver, error)
	Close() error
	Lock(source.Module) error
	Unlock(source.Module) error
	Exec(string) error
	Version(source.Module) (int, bool, error)
	SetVer(source.Module, int, bool) error
}

func Open

func Open(n string, uri string) (Driver, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL