Help us shape the future of Go! Take the 2026 Go Developer Survey

postgres

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DSN              string
	DriverName       string
	Host             string
	Port             int
	Database         string
	Username         string
	Password         string
	SSLMode          string
	Timezone         string
	SearchPath       string
	PreflightEnabled bool
	ModelRoot        string
	SnapshotPath     string
	SchemaName       string
	Options          map[string]string
	MaxOpenConns     int
	MaxIdleConns     int
	ConnMaxLifetime  time.Duration
	ConnMaxIdleTime  time.Duration
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *Driver

func (*Driver) ConnectionInfo added in v0.4.2

func (d *Driver) ConnectionInfo() driver.ConnectionInfo

func (*Driver) Dialect

func (d *Driver) Dialect() dialect.Dialect

func (*Driver) Inspector added in v0.4.2

func (d *Driver) Inspector() schema.Inspector

func (*Driver) Name

func (d *Driver) Name() string

func (*Driver) Open

func (d *Driver) Open(ctx context.Context) (*sql.DB, error)

func (*Driver) PreflightConfig added in v0.1.7

func (d *Driver) PreflightConfig() driver.PreflightConfig

func (*Driver) Validate

func (d *Driver) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL