Documentation ¶
Index ¶
- type Builder
- type Core
- type ORM
- func (x *ORM) Count(ctx context.Context, count *int64) error
- func (x *ORM) Debug(ctx context.Context) Core
- func (x *ORM) Delete(ctx context.Context, value interface{}, conds ...interface{}) error
- func (x *ORM) Exec(ctx context.Context, query string, args ...interface{}) (rst sql.Result, err error)
- func (x *ORM) Find(ctx context.Context, dest interface{}, conds ...interface{}) error
- func (x *ORM) First(ctx context.Context, dest interface{}, conds ...interface{}) error
- func (x *ORM) Group(ctx context.Context, name string) Core
- func (x *ORM) Insert(ctx context.Context, value interface{}) error
- func (x *ORM) InsertBulk(ctx context.Context, value interface{}, batchSize int) error
- func (x *ORM) InsertBulkIgnore(ctx context.Context, value interface{}, batchSize int) error
- func (x *ORM) InsertIgnore(ctx context.Context, value interface{}) error
- func (x *ORM) Joins(ctx context.Context, query string, args ...interface{}) Core
- func (x *ORM) Limit(ctx context.Context, limit int) Core
- func (x *ORM) Model(ctx context.Context, value interface{}) Core
- func (x *ORM) Not(ctx context.Context, query interface{}, args ...interface{}) Core
- func (x *ORM) Offset(ctx context.Context, offset int) Core
- func (x *ORM) Or(ctx context.Context, query interface{}, args ...interface{}) Core
- func (x *ORM) Order(ctx context.Context, value interface{}) Core
- func (x *ORM) Query(ctx context.Context, query string, args ...interface{}) (*Rows, error)
- func (x *ORM) QueryRow(ctx context.Context, query string, args ...interface{}) (*Row, error)
- func (x *ORM) Raw(ctx context.Context, sql string, values ...interface{}) Core
- func (x *ORM) Select(ctx context.Context, query interface{}, args ...interface{}) Core
- func (x *ORM) Tx(ctx context.Context, f func(context.Context) error) error
- func (x *ORM) Unscoped(ctx context.Context) Core
- func (x *ORM) Update(ctx context.Context, column string, value interface{}) error
- func (x *ORM) Updates(ctx context.Context, value map[string]interface{}) error
- func (x *ORM) Where(ctx context.Context, query interface{}, args ...interface{}) Core
- type ORMItf
- type Row
- type Rows
- type TxORM
- func (x *TxORM) Commit() error
- func (x *TxORM) Count(ctx context.Context, count *int64) error
- func (x *TxORM) Debug(_ context.Context) Core
- func (x *TxORM) Delete(ctx context.Context, value interface{}, conds ...interface{}) error
- func (x *TxORM) Exec(ctx context.Context, query string, args ...interface{}) (rst sql.Result, err error)
- func (x *TxORM) Find(ctx context.Context, dest interface{}, conds ...interface{}) error
- func (x *TxORM) First(ctx context.Context, dest interface{}, conds ...interface{}) error
- func (x *TxORM) Group(_ context.Context, name string) Core
- func (x *TxORM) Insert(ctx context.Context, value interface{}) error
- func (x *TxORM) InsertBulk(ctx context.Context, value interface{}, batchSize int) error
- func (x *TxORM) InsertBulkIgnore(ctx context.Context, value interface{}, batchSize int) error
- func (x *TxORM) InsertIgnore(ctx context.Context, value interface{}) error
- func (x *TxORM) Joins(_ context.Context, query string, args ...interface{}) Core
- func (x *TxORM) Limit(_ context.Context, limit int) Core
- func (x *TxORM) Model(_ context.Context, value interface{}) Core
- func (x *TxORM) Not(_ context.Context, query interface{}, args ...interface{}) Core
- func (x *TxORM) Offset(_ context.Context, offset int) Core
- func (x *TxORM) Or(_ context.Context, query interface{}, args ...interface{}) Core
- func (x *TxORM) Order(_ context.Context, value interface{}) Core
- func (x *TxORM) Query(ctx context.Context, query string, args ...interface{}) (*Rows, error)
- func (x *TxORM) QueryRow(ctx context.Context, query string, args ...interface{}) (*Row, error)
- func (x *TxORM) Raw(_ context.Context, sql string, values ...interface{}) Core
- func (x *TxORM) Rollback() error
- func (x *TxORM) Select(_ context.Context, query interface{}, args ...interface{}) Core
- func (x *TxORM) Tx(f func() error) (err error)
- func (x *TxORM) Unscoped(_ context.Context) Core
- func (x *TxORM) Update(ctx context.Context, column string, value interface{}) error
- func (x *TxORM) Updates(ctx context.Context, value map[string]interface{}) error
- func (x *TxORM) Where(_ context.Context, query interface{}, args ...interface{}) Core
- type TxORMItf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { Debug(ctx context.Context) Core Model(ctx context.Context, value interface{}) Core Select(ctx context.Context, query interface{}, args ...interface{}) Core Where(ctx context.Context, query interface{}, args ...interface{}) Core Not(ctx context.Context, query interface{}, args ...interface{}) Core Or(ctx context.Context, query interface{}, args ...interface{}) Core Joins(ctx context.Context, query string, args ...interface{}) Core Group(ctx context.Context, name string) Core Order(ctx context.Context, value interface{}) Core Limit(ctx context.Context, limit int) Core Offset(ctx context.Context, offset int) Core Unscoped(ctx context.Context) Core Raw(ctx context.Context, sql string, values ...interface{}) Core }
type Core ¶
type Core interface { Builder Insert(ctx context.Context, value interface{}) error InsertBulk(ctx context.Context, value interface{}, batchSize int) error InsertIgnore(ctx context.Context, value interface{}) error InsertBulkIgnore(ctx context.Context, value interface{}, batchSize int) error Delete(ctx context.Context, value interface{}, conds ...interface{}) error Update(ctx context.Context, column string, value interface{}) error Updates(ctx context.Context, value map[string]interface{}) error Exec(ctx context.Context, query string, args ...interface{}) (rst sql.Result, err error) Query(ctx context.Context, query string, args ...interface{}) (rows *Rows, err error) QueryRow(ctx context.Context, query string, args ...interface{}) (row *Row, err error) First(ctx context.Context, dest interface{}, conds ...interface{}) error Find(ctx context.Context, dest interface{}, conds ...interface{}) error Count(ctx context.Context, count *int64) error }
type ORM ¶
type ORM struct {
// contains filtered or unexported fields
}
func (*ORM) InsertBulk ¶
func (*ORM) InsertBulkIgnore ¶
type TxORM ¶
type TxORM struct {
// contains filtered or unexported fields
}
func (*TxORM) InsertBulk ¶
func (*TxORM) InsertBulkIgnore ¶
func (*TxORM) InsertIgnore ¶
Click to show internal directories.
Click to hide internal directories.