Documentation ¶
Index ¶
- func Count(executor Executor, statement string, c *int, arg model.Arg) error
- func Delete(executor Executor, statement string, m model.Identifier) (err error)
- func Get(executor Executor, statement string, m model.Identifier) error
- func NamedInsert(executor Executor, statement string, m model.Identifier) error
- func NamedSave(executor Executor, statement string, m model.Identifier) error
- func NamedUpdate(executor Executor, statement string, m model.Identifier) error
- func Select(executor Executor, statement string, list any, arg model.Arg) error
- type Counter
- type Deleter
- type Executor
- type Finder
- type Geter
- type Inserter
- type ORM
- type ORMBase
- func (o *ORMBase[M, S]) Count(args ...model.Arg) (c int, err error)
- func (o *ORMBase[M, S]) CountTx(tx *sqlx.Tx, args ...model.Arg) (c int, err error)
- func (o *ORMBase[M, S]) Delete(m M) error
- func (o *ORMBase[M, S]) DeleteTx(tx *sqlx.Tx, m M) error
- func (o *ORMBase[M, S]) Find(args ...model.Arg) (list []M, err error)
- func (o *ORMBase[M, S]) Get(m M) error
- func (o *ORMBase[M, S]) GetTx(tx *sqlx.Tx, m M) error
- func (o *ORMBase[M, S]) Insert(m M) error
- func (o *ORMBase[M, S]) InsertTx(tx *sqlx.Tx, m M) error
- func (o *ORMBase[M, S]) PaginationTx(tx *sqlx.Tx, pager model.Pager) (list []M, err error)
- func (o *ORMBase[M, S]) Save(m M) error
- func (o *ORMBase[M, S]) SaveTx(tx *sqlx.Tx, m M) error
- func (o *ORMBase[M, S]) Update(m M) error
- func (o *ORMBase[M, S]) UpdateTx(tx *sqlx.Tx, m M) error
- type Pager
- type Saver
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NamedInsert ¶
func NamedInsert(executor Executor, statement string, m model.Identifier) error
func NamedUpdate ¶
func NamedUpdate(executor Executor, statement string, m model.Identifier) error
Types ¶
type ORMBase ¶ added in v0.0.2
type ORMBase[M model.Identifier, S sql.SQL] struct { Executor Stmt S }
func (*ORMBase[M, S]) PaginationTx ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.