Documentation
¶
Overview ¶
Package postgres provides PostgresConfig and registers the GORM postgres dialector on import.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
InitDb bool
SyncForce bool
SyncVerbose bool
AliasName string
UserName string
Password string
Host string
Port int
DbName string
MaxIdle int
MaxConn int
SSL string
TimeZone string
AdvancedConfig string
PreferSimpleProtocol bool
}
Config postgres connection settings.
func (*Config) Build ¶
func (c *Config) Build() (b persistence.BaseConfig)
Click to show internal directories.
Click to hide internal directories.