postgres

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 13 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
	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) Dialect

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

func (*Driver) Name

func (d *Driver) Name() string

func (*Driver) Open

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

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