postgresql

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 11 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 {
	Address       config.Secret   `toml:"address"`
	OutputAddress string          `toml:"outputaddress"`
	MaxIdle       int             `toml:"max_idle"`
	MaxOpen       int             `toml:"max_open"`
	MaxLifetime   config.Duration `toml:"max_lifetime"`
	IsPgBouncer   bool            `toml:"-"`
}

func (*Config) CreateService

func (c *Config) CreateService() (*Service, error)

type Service

type Service struct {
	DB                 *sql.DB
	SanitizedAddress   string
	ConnectionDatabase string
	// contains filtered or unexported fields
}

Service common functionality shared between the postgresql and postgresql_extensible packages.

func (*Service) Start

func (p *Service) Start() error

func (*Service) Stop

func (p *Service) Stop()

Jump to

Keyboard shortcuts

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