Documentation
¶
Index ¶
- Constants
- func And(predicates ...xsql.WhereFunc) xsql.WhereFunc
- func Columns() []string
- func ColumnsSet() map[string]struct{}
- func Delete(db xsql.ExecQuerier) *xsql.DeleteExecutor[*User]
- func Find(db xsql.ExecQuerier) *xsql.SelectExecutor[*User]
- func Not(predicate xsql.WhereFunc) xsql.WhereFunc
- func Or(predicates ...xsql.WhereFunc) xsql.WhereFunc
- type Creater
- type Updater
- type User
- func (a *User) Columns() []string
- func (a *User) ColumnsSet() map[string]struct{}
- func (a *User) Dialect() string
- func (a *User) GetAutoIncrPk() (int64, string)
- func (a *User) IsNil() bool
- func (a *User) NewPtr() any
- func (u *User) ScanDst(aa any, columns []string) []any
- func (a *User) Schema() string
- func (a *User) SetAutoIncrPk(id int64)
- func (a *User) Table() string
- func (a *User) Values() []any
Constants ¶
View Source
const ( //Id Id = "id" //Name Name = "name" //Age Age = "age" //Ctime Ctime = "ctime" //Mtime Mtime = "mtime" )
Variables ¶
This section is empty.
Functions ¶
func ColumnsSet ¶
func ColumnsSet() map[string]struct{}
func Delete ¶
func Delete(db xsql.ExecQuerier) *xsql.DeleteExecutor[*User]
func Find ¶
func Find(db xsql.ExecQuerier) *xsql.SelectExecutor[*User]
Types ¶
type Creater ¶
type Creater struct { *xsql.InsertExecutor[*User] }
func Create ¶
func Create(db xsql.ExecQuerier) *Creater
type Updater ¶
type Updater struct { *xsql.UpdateExecutor[*User] }
func Update ¶
func Update(db xsql.ExecQuerier) *Updater
type User ¶
type User struct { Id int64 `json:"id"` // Name string `json:"name"` // Age int64 `json:"age"` // Ctime time.Time `json:"ctime"` // Mtime time.Time `json:"mtime"` // }
func (*User) ColumnsSet ¶
func (*User) GetAutoIncrPk ¶
func (*User) SetAutoIncrPk ¶
Click to show internal directories.
Click to hide internal directories.