Slide 12
Slide 12 text
Solution 2x
Delete(record Record) error
DeleteFrom(view View, tail string, args ...interface{}) (uint, error)
Exec(query string, args ...interface{}) (sql.Result, error)
FindAllFrom(view View, column string, args ...interface{}) ([]Struct, error)
FindByPrimaryKeyFrom(table Table, pk interface{}) (Record, error)
FindByPrimaryKeyTo(record Record, pk interface{}) error
FindOneFrom(view View, column string, arg interface{}) (Struct, error)
FindOneTo(str Struct, column string, arg interface{}) error
FindRows(view View, column string, arg interface{}) (*sql.Rows, error)
Insert(str Struct) error
InsertColumns(str Struct, columns ...string) error
InsertMulti(structs ...Struct) error
NextRow(str Struct, rows *sql.Rows) error
QualifiedColumns(view View) []string
QualifiedView(view View) string
Query(query string, args ...interface{}) (*sql.Rows, error)
QueryRow(query string, args ...interface{}) *sql.Row
Reload(record Record) error
Save(record Record) error
SelectAllFrom(view View, tail string, args ...interface{}) (structs []Struct, err error)
SelectOneFrom(view View, tail string, args ...interface{}) (Struct, error)
SelectOneTo(str Struct, tail string, args ...interface{}) error
SelectRows(view View, tail string, args ...interface{}) (*sql.Rows, error)
Update(record Record) error
UpdateColumns(record Record, columns ...string) error
UpdateView(str Struct, columns []string, tail string, args ...interface{}) (uint, error)