Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "orm"
Variables ¶
This section is empty.
Functions ¶
func DefaultLoggerCfg ¶
Types ¶
type Config ¶
type Config struct { TablePrefix string `yaml:"table_prefix"` Driver string `yaml:"driver"` DriverCfg config.Node `yaml:"driver_config"` SkipDefaultTransaction bool `yaml:"skip_default_transaction"` FullSaveAssociations bool `yaml:"full_save_associations"` DryRun bool `yaml:"dry_run"` PrepareStmt bool `yaml:"prepare_stmt"` DisableAutomaticPing bool `yaml:"disable_automatic_ping"` DisableForeignKeyConstraintWhenMigrating bool `yaml:"disable_foreign_key_constraint_when_migrating"` DisableNestedTransaction bool `yaml:"disable_nested_transaction"` AllowGlobalUpdate bool `yaml:"allow_global_update"` QueryFields bool `yaml:"query_fields"` CreateBatchSize int `yaml:"create_batch_size"` MaxConnTime time.Duration `yaml:"max_conn_time"` MaxConnIdle int `yaml:"max_conn_idle"` MaxConnOpen int `yaml:"max_conn_open"` }
func DefaultCfg ¶
func DefaultCfg() Config
Click to show internal directories.
Click to hide internal directories.