Documentation
¶
Index ¶
Constants ¶
View Source
const PluginName = "gorm"
Variables ¶
View Source
var ErrConfigNotFound = errors.New("gorm config not found")
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type ChannelConfig ¶
type Config ¶
type Config struct {
SkipDefaultTransaction bool `mapstructure:"skip_default_transaction" json:"skip_default_transaction,omitempty"`
PrepareStmt bool `mapstructure:"prepare_stmt" json:"prepare_stmt,omitempty"`
DisableNestedTransaction bool `mapstructure:"disable_nested_transaction" json:"disable_nested_transaction,omitempty"`
AllowGlobalUpdate bool `mapstructure:"allow_global_update" json:"allow_global_update,omitempty"`
DisableAutomaticPing bool `mapstructure:"disable_automatic_ping" json:"disable_automatic_ping,omitempty"`
DisableForeignKeyConstraintWhenMigrating bool `mapstructure:"disable_foreign_key_constraint_when_migrating" json:"disable_foreign_key_constraint_when_migrating,omitempty"`
IgnoreRelationshipsWhenMigrating bool `mapstructure:"ignore_relationships_when_migrating" json:"ignore_relationships_when_migrating,omitempty"`
TranslateError bool `mapstructure:"translate_error" json:"translate_error,omitempty"`
}
type ConfigMySQL ¶
type ConfigMySQL struct {
DriverName string `mapstructure:"driver_name" json:"driver_name,omitempty"`
ServerVersion string `mapstructure:"server_version" json:"server_version,omitempty"`
DSN string `mapstructure:"dsn" json:"dsn,omitempty"`
SkipInitializeWithVersion bool `mapstructure:"skip_initialize_with_version" json:"skip_initialize_with_version,omitempty"`
DefaultStringSize uint `mapstructure:"default_string_size" json:"default_string_size,omitempty"`
DefaultDatetimePrecision *int `mapstructure:"default_datetime_precision" json:"default_datetime_precision,omitempty"`
DisableWithReturning bool `mapstructure:"disable_with_returning" json:"disable_with_returning,omitempty"`
DisableDatetimePrecision bool `mapstructure:"disable_datetime_precision" json:"disable_datetime_precision,omitempty"`
DontSupportRenameIndex bool `mapstructure:"dont_support_rename_index" json:"dont_support_rename_index,omitempty"`
DontSupportRenameColumn bool `mapstructure:"dont_support_rename_column" json:"dont_support_rename_column,omitempty"`
DontSupportRenameColumnUnique bool `mapstructure:"dont_support_rename_column_unique" json:"dont_support_rename_column_unique,omitempty"`
DontSupportNullAsDefaultValue bool `mapstructure:"dont_support_null_as_default_value" json:"dont_support_null_as_default_value,omitempty"`
}
type ConfigPostgreSQL ¶
type ConfigPostgreSQL struct {
DriverName string `mapstructure:"driver_name" json:"driver_name,omitempty"`
DSN string `mapstructure:"dsn" json:"dsn,omitempty"`
PreferSimpleProtocol bool `mapstructure:"prefer_simple_protocol" json:"prefer_simple_protocol,omitempty"`
WithoutReturning bool `mapstructure:"without_returning" json:"without_returning,omitempty"`
}
type ConfigSQLServer ¶
type ConfigSQLite ¶
type Configurer ¶
Click to show internal directories.
Click to hide internal directories.