postgres

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package postgres contains the basic definition for connection to a postgres based container

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

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

func NewDefaultConnector

func NewDefaultConnector(ctx context.Context) *Connector

func (*Connector) ContainerImage

func (c *Connector) ContainerImage() string

func (*Connector) ContainerName

func (c *Connector) ContainerName() string

func (*Connector) DataSourceName

func (c *Connector) DataSourceName(hostname string) string

DataSourceName returns the data source name expected by https://github.com/jackc/pgx

func (*Connector) Env added in v0.0.9

func (c *Connector) Env() []string

func (*Connector) Port

func (c *Connector) Port() int

func (*Connector) PortWithProtocol added in v0.0.9

func (c *Connector) PortWithProtocol() string

Jump to

Keyboard shortcuts

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