psql

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPostgresDB

func RunPostgresDB(version string, certData *Cert) (string, func(), error)

func RunPostgresDBWithWrongCerts

func RunPostgresDBWithWrongCerts(version string, certData *Cert) (string, func(), error)

for testingonly; for normal usecases, use RunPostgresDB

Types

type Cert

type Cert struct {
	CACertPath string
	// contains filtered or unexported fields
}

func (*Cert) Cleanup

func (c *Cert) Cleanup()

remove temp files

func (*Cert) PopulateSelfSigned

func (c *Cert) PopulateSelfSigned(organization string, dnsName string) error

generate and populate self signed certificates in struct fields.

type Generator

type Generator struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(id int, options GeneratorOptions, ctx context.Context, requestrate int, s *stats.Stats) *Generator

func (*Generator) Finish

func (g *Generator) Finish() error

func (*Generator) Init

func (g *Generator) Init() error

func (*Generator) InitDone

func (g *Generator) InitDone() error

func (*Generator) Tick

func (g *Generator) Tick() error

type GeneratorOptions

type GeneratorOptions struct {
	ConnectionString string
	Query            string
}

https://pkg.go.dev/github.com/jackc/pgconn#Config

func NewOptions

func NewOptions() *GeneratorOptions

Jump to

Keyboard shortcuts

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