Documentation
¶
Index ¶
Constants ¶
View Source
const ( Serializable TxIsoLevel = pgx.Serializable RepeatableRead TxIsoLevel = pgx.RepeatableRead ReadCommitted TxIsoLevel = pgx.ReadCommitted ReadUncommitted TxIsoLevel = pgx.ReadUncommitted ReadWrite TxAccessMode = pgx.ReadWrite ReadOnly TxAccessMode = pgx.ReadOnly Deferrable TxDeferrableMode = pgx.Deferrable NotDeferrable TxDeferrableMode = pgx.NotDeferrable )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Config ¶
type Config struct {
Host string `confy:"host" yaml:"host" json:"host" toml:"host" env:"PG_HOST" default:"localhost"`
Port int `confy:"port" yaml:"port" json:"port" toml:"port" env:"PG_PORT" default:"5432"`
DBName string `confy:"dbname" yaml:"dbname" json:"dbname" toml:"dbname" env:"PG_NAME" default:"postgres"`
Username string `confy:"username" yaml:"username" json:"username" toml:"username" env:"PG_USER"`
Password string `confy:"password" env:"POSTGRES_PASSWORD"`
SSLMode string `confy:"sslmode" yaml:"sslmode" json:"sslmode" toml:"sslmode" env:"PG_SSLMODE" default:"disable"`
}
type TxAccessMode ¶
type TxAccessMode = pgx.TxAccessMode
type TxDeferrableMode ¶
type TxDeferrableMode = pgx.TxDeferrableMode
type TxIsoLevel ¶
type TxIsoLevel = pgx.TxIsoLevel
type TxOption ¶
func WithAccess ¶
func WithAccess(access TxAccessMode) TxOption
func WithBeginQuery ¶
func WithCommitQuery ¶
func WithDeferrable ¶
func WithDeferrable(deferrable TxDeferrableMode) TxOption
func WithLevel ¶
func WithLevel(level TxIsoLevel) TxOption
Click to show internal directories.
Click to hide internal directories.