Documentation ¶
Index ¶
- func Count(model interface{}, query string, args ...interface{}) (int, error)
- func Create(model Model) (interface{}, error)
- func DropTable(model interface{})
- func Exec(query string, args ...interface{}) error
- func Exists(model interface{}) bool
- func Find(model interface{}, query string, args ...interface{}) error
- func MustCreateTable(model interface{})
- func MustNotExist(model interface{})
- func One(model interface{}, query string, args ...interface{}) error
- func Prepare(query string) (*sqlx.Stmt, error)
- func Remove(model interface{}) error
- func Save(model Model) (interface{}, error)
- func Truncate(model interface{}) error
- type Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustCreateTable ¶
func MustCreateTable(model interface{})
func MustNotExist ¶
func MustNotExist(model interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.