Documentation ¶
Overview ¶
Package postgres provides postgres database driver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connector ¶
type Connector struct { DriverName string DSN string Host string Port int HostAddr []string Username string Password string Passfile string Database string RequireAuth string ChannelBinding string ConnectTimeout time.Duration SSLMode string Timezone string ClientEncoding string Options string ApplicationName string FallbackApplicationName string KeepAlives bool KeepAlivesIdle time.Duration KeepAlivesInterval time.Duration KeepAlivesCount int TCPUserTimeout time.Duration Replication string GSSEncMode string SSLNegotiation string SSLCompression bool SSLCert string SSLKey string SSLPassword string SSLCertMode string SSLRootCert string SSLCrl string SSLCrlDir string SSLSni bool RequirePeer string SSLMinProtocolVersion string SSLMaxProtocolVersion string KrbSrvName string GSSLib string GSSDelegation bool Service string TargetSessionAttrs string LoadBalanceHosts string WithoutQuotingCheck bool PreferSimpleProtocol bool WithoutReturning bool GormOptions *gorm.Config Replicas []map[string]any }
type Driver ¶
type Driver struct{}
Driver is a postgres database driver.
func (Driver) Open ¶
Open opens a postgres database connector. For more information on the options, see postgres.Config(https://pkg.go.dev/gorm.io/driver/postgres#Config).
Click to show internal directories.
Click to hide internal directories.