postgres

package
v0.0.0-...-551586a Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnector

func NewConnector(ctx context.Context, config Config) (*pgx.Conn, error)

NewConnector provides new PostgreSQL connector

Types

type Config

type Config struct {
	// ConnectionString of the database
	ConnectionString string
}

Config represents PostgreSQL config

func DefaultConfig

func DefaultConfig(app *cli.Context) Config

DefaultConfig provides default PostgreSQL config

Jump to

Keyboard shortcuts

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