Versions in this module Expand all Collapse all v0 v0.3.1 Nov 19, 2024 v0.3.0 Jul 15, 2024 Changes in this version + func AclDSFactory(acl ds.IDataSource) (ds.IAclDataSource, error) + func ByID(tx *sql.Tx, t ITable, v ...interface{}) error + func Db() *sql.DB + func Init() error + func PinDSFactory(pin, user ds.IDataSource) (ds.IPinDataSource, error) + func UserDSFactory(user ds.IDataSource) (ds.IUserDataSource, error) + type ITable interface + AfterDelete func(qo *ds.QueryOptions, tx *sql.Tx) error + AfterInsert func(qo *ds.QueryOptions, tx *sql.Tx) error + AfterSelect func(qo *ds.QueryOptions) error + AfterUpdate func(qo *ds.QueryOptions, tx *sql.Tx) error + BeforeDelete func(qo *ds.QueryOptions, tx *sql.Tx) (ds.Params, error) + BeforeInsert func(qo *ds.QueryOptions, tx *sql.Tx) error + BeforeSelect func(qo *ds.QueryOptions) (ds.Params, error) + BeforeUpdate func(qo *ds.QueryOptions, tx *sql.Tx) error + type NotITableError struct + type Table struct + func (Table) AfterDelete(qo *ds.QueryOptions, tx *sql.Tx) error + func (Table) AfterInsert(qo *ds.QueryOptions, tx *sql.Tx) error + func (Table) AfterSelect(qo *ds.QueryOptions) error + func (Table) AfterUpdate(qo *ds.QueryOptions, tx *sql.Tx) error + func (Table) BeforeDelete(qo *ds.QueryOptions, tx *sql.Tx) (ds.Params, error) + func (Table) BeforeInsert(qo *ds.QueryOptions, tx *sql.Tx) error + func (Table) BeforeSelect(qo *ds.QueryOptions) (ds.Params, error) + func (Table) BeforeUpdate(qo *ds.QueryOptions, tx *sql.Tx) error + func (Table) Count(qo *ds.QueryOptions) (count int64, err error) + func (Table) Delete(qo *ds.QueryOptions) (int64, error) + func (Table) Fetch(qo *ds.QueryOptions) (meta ds.ResultSetMeta, data []interface{}, err error) + func (Table) Find(qo *ds.QueryOptions) (meta ds.ResultSetMeta, data interface{}, err error) + func (Table) Insert(qo *ds.QueryOptions) error + func (Table) Update(qo *ds.QueryOptions) (int64, error)