Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBDeleter ¶
type DBDeleter interface { Delete(record reform.Record) error DeleteFrom(view reform.View, tail string, args ...interface{}) (uint, error) }
DBDeleter interface.
type DBFinder ¶
type DBFinder interface { FindOneTo(str reform.Struct, column string, arg interface{}) error FindOneFrom(view reform.View, column string, arg interface{}) (reform.Struct, error) FindRows(view reform.View, column string, arg interface{}) (*sql.Rows, error) FindAllFrom(view reform.View, column string, args ...interface{}) ([]reform.Struct, error) FindByPrimaryKeyTo(record reform.Record, pk interface{}) error FindByPrimaryKeyFrom(table reform.Table, pk interface{}) (reform.Record, error) }
DBFinder interface.
type DBInserter ¶
type DBInserter interface { Insert(str reform.Struct) error InsertColumns(str reform.Struct, columns ...string) error InsertMulti(structs ...reform.Struct) error }
DBInserter interface.
type DBSelector ¶
type DBSelector interface { SelectOneTo(str reform.Struct, tail string, args ...interface{}) error SelectOneFrom(view reform.View, tail string, args ...interface{}) (reform.Struct, error) SelectRows(view reform.View, tail string, args ...interface{}) (*sql.Rows, error) SelectAllFrom(view reform.View, tail string, args ...interface{}) ([]reform.Struct, error) }
DBSelector interface.
type DBUpdater ¶
type DBUpdater interface { Update(record reform.Record) error UpdateColumns(record reform.Record, columns ...string) error UpdateView(str reform.Struct, columns []string, tail string, args ...interface{}) (uint, error) }
DBUpdater interface.
type DBWriter ¶
type DBWriter interface { DBInserter DBUpdater DBSaver DBDeleter }
DBWriter interface.
Click to show internal directories.
Click to hide internal directories.