Documentation ¶
Index ¶
- Constants
- func Clauses(conds ...clause.Expression) *gorm.DB
- func Count(m interface{}, query interface{}, args ...interface{}) (count int64)
- func Create(value interface{}) *gorm.DB
- func Exist(model, query interface{}, args ...interface{}) bool
- func Initialize(dsn DsnParams, models []any) (err error)
- func Model(value interface{}) *gorm.DB
- func Raw(sql string, values ...interface{}) *gorm.DB
- func Select(query interface{}, args ...interface{}) *gorm.DB
- func Table(name string, args ...interface{}) *gorm.DB
- func Transaction(fc func(tx *gorm.DB) error, opts ...*sql.TxOptions) error
- func Where(query interface{}, args ...interface{}) *gorm.DB
- type DsnParams
Constants ¶
View Source
const Mysql = "mysql"
View Source
const Pgsql = "pgsql"
View Source
const Sqlite = "sqlite"
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.