postgres

package
v0.0.0-...-d2da372 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB(ctx context.Context, dsn string) (*sqlx.DB, error)

Types

type PostgresConnector

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

func Instance

func Instance(ctx context.Context, cfg *config.Config) (*PostgresConnector, error)

func (*PostgresConnector) Begin

func (*PostgresConnector) Client

func (c *PostgresConnector) Client() repository.Client

func (*PostgresConnector) Close

func (c *PostgresConnector) Close() (err error)

func (*PostgresConnector) Transaction

func (c *PostgresConnector) Transaction() repository.Transaction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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