Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChanNotAllowed error = errors.New("Channel not allowed")
View Source
var ErrColumnNotFound error = errors.New("Column not found")
View Source
var ErrInvalid error = errors.New("Invalid")
View Source
var ErrNoPKFound error = errors.New("No primary key found")
View Source
var ErrNoRuleFound error = errors.New("No rule found")
View Source
var ErrNoTablesFound error = errors.New("No tables found")
View Source
var ErrNotStructPointer error = errors.New("Parameter must be of pointer to struct type")
View Source
var ErrNotStructPointerChan error = errors.New("Parameter must be of channel of pointer to struct type")
View Source
var ErrNotStructSlicePointer error = errors.New("Parameter must be of pointer to slice of pointers to struct type")
View Source
var ErrNullColumn error = errors.New("Null column")
View Source
var ErrPKNotI64 error = errors.New("Primary key is not int64")
View Source
var ErrRuleNotFound error = errors.New("Rule not found")
View Source
var ErrSpecNotStruct error = errors.New("Specification is not of struct type")
View Source
var ErrWrongParmCount error = errors.New("Wrong parameter count")
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { // If the database has a special name for PK columns, it must return this name. // Otherwise it must return empty string (""). PKName() string Close() error ColumnSpecs(fldList []FieldSpec, pkIndex int) (colNames string, cols []int) CreateTable(tabName string, columns []FieldSpec) error Prepare(stmt *StmtSpec) error Select(tabName string, at At, callback func(Scanner) error) error Insert(tabName string, pk driver.NamedValue, parms []driver.NamedValue) (PK, error) Update(tabName string, pk driver.NamedValue, parms []driver.NamedValue) error Delete(tabName string, at At) error Exists(tabName string) bool }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.