Documentation ¶
Overview ¶
Package dml implements sql utility functions.
Usage
user := NewUser() user.SetId("1") user.SetName("admin") d := dml.New(&dialect.MySQL{}) v, _ := d.Insert(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 { Update(e entity.Interface) (dml string, args []interface{}) Insert(e entity.Interface) (dml string, args []interface{}) Delete(e entity.Interface) (dml string, arg interface{}) Disable(e entity.Interface) (dml string, arg interface{}) }
Interface dml interface.
Click to show internal directories.
Click to hide internal directories.