Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitiailzedWriter ¶
InitiailzedWriter returns a Initiailzed sql writer
Types ¶
type Config ¶
type Config struct { // ConnectionString : When establishing a connection you are expected to supply a connection string containing zero or more parameters. // A subset of the connection parameters supported are : // dbname - The name of the database to connect to // user - The user to sign in as // password - The user's password // host - The host to connect to. Values that start with / are for unix // domain sockets. (default is localhost) // port - The port to bind to. (default is 5432) // sslmode - Whether or not to use SSL (default is require, this is not the default for libpq) // fallback_application_name - An application_name to fall back to if one isn't provided. // connect_timeout - Maximum wait for connection, in seconds. Zero or not specified means wait indefinitely. // sslcert - Cert file location. The file must contain PEM encoded data. // sslkey - Key file location. The file must contain PEM encoded data. // sslrootcert - The location of the root certificate file. The file must contain PEM encoded data. ConnectionString string Dialect string Schema string Table string Columns []string MaxParallelConnection int }
Config is a struct to hold all postgre configuration
Click to show internal directories.
Click to hide internal directories.