pgsql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrEmptyDSN = utils.Error("Empty DSN")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	db.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *ClientConfig) (*Client, error)

func (*Client) Connect

func (db *Client) Connect() error

type ClientConfig

type ClientConfig struct {
	DSN string `json:"dsn"`
}

func (ClientConfig) Validate

func (c ClientConfig) Validate() error

Jump to

Keyboard shortcuts

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