Documentation ¶
Overview ¶
Package dql implements sql utility functions.
Usage
user := NewUser() user.SetId("1") user.SetName("admin") d := dql.New(&dialect.MySQL{}) v, _ := d.SelectOne(user) fmt.Println(v)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { SelectOne(e entity.Interface) (dql string, arg interface{}) SelectPage(dql string, pageable domain.Pageable) string SelectListBySift(e entity.Interface, sifts ...domain.Sift) (dql string, args []interface{}, err error) SelectCountBySift(e entity.Interface, sifts ...domain.Sift) (dql string, args []interface{}, err error) }
Interface Interface.
Click to show internal directories.
Click to hide internal directories.