Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "gorm"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cfg ¶
type Cfg struct {
Driver string `json:"driver"`
SkipDefaultTransaction bool `json:"skip_default_transaction"`
FullSaveAssociations bool `json:"full_save_associations"`
DryRun bool `json:"dry_run"`
PrepareStmt bool `json:"prepare_stmt"`
DisableAutomaticPing bool `json:"disable_automatic_ping"`
DisableForeignKeyConstraintWhenMigrating bool `json:"disable_foreign_key_constraint_when_migrating"`
DisableNestedTransaction bool `json:"disable_nested_transaction"`
AllowGlobalUpdate bool `json:"allow_global_update"`
QueryFields bool `json:"query_fields"`
CreateBatchSize int `json:"create_batch_size"`
MaxConnTime time.Duration `json:"max_conn_time" yaml:"max_conn_time"`
MaxConnIdle int `json:"max_conn_idle" yaml:"max_conn_idle"`
MaxConnOpen int `json:"max_conn_open" yaml:"max_conn_open"`
}
func DefaultCfg ¶
func DefaultCfg() *Cfg
type Client ¶
func (Client) UpdateResObj ¶
func (c Client) UpdateResObj(val interface{})
type JSON ¶
type JSON json.RawMessage
func (JSON) GormDataType ¶
Click to show internal directories.
Click to hide internal directories.