Documentation ¶
Index ¶
- func Binds[T ITable](m T) []interface{}
- type ITable
- type ORM
- func (c *ORM[T]) Count(where string, values []interface{}) (int64, error)
- func (c *ORM[T]) Fields() string
- func (c *ORM[T]) Limit(where string, values []interface{}, offset, size int64, order string) ([]T, error)
- func (c *ORM[T]) Pk() string
- func (c *ORM[T]) Row(where string, values []interface{}) (T, error)
- func (c *ORM[T]) Rows(where string, values []interface{}) ([]T, error)
- func (c *ORM[T]) Save() (int64, error)
- func (c *ORM[T]) Saves(rows []T) (int64, error)
- func (c *ORM[T]) TableName() string
- func (c *ORM[T]) Update(pk int64) (int64, error)
- func (c *ORM[T]) UpdateByPk(data map[string]interface{}, pk int64) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.