Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeUpsert ¶
Builds the values needed to compose an upsert statement
Types ¶
type Config ¶
type Config struct { Username string `conf:"username" default:"postgres"` Password string `conf:"password" default:"password"` Host string `conf:"host" default:"postgres"` Port string `conf:"port" default:"5432"` Database string `conf:"database" default:"postgres"` AutoCreate bool `conf:"auto_create" default:"false"` SearchPath string `conf:"search_path" default:""` SSLMode string `conf:"sslmode" default:"false"` SSLCert string `conf:"sslcert" default:""` SSLKey string `conf:"sslkey" default:""` SSLRootCert string `conf:"sslrootcert" default:""` Retries int `conf:"retries" default:"5"` SleepBetweenRetries time.Duration `conf:"sleep_between_retries" default:"7s"` MaxConnections int `conf:"max_connections" default:"40"` WipeConfirm bool `conf:"wipe_confirm" default:"false"` Logger Logger QueryLogger Logger MigrationSource source.Driver }
Click to show internal directories.
Click to hide internal directories.