pg

package
v0.0.0-...-cf47190 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	DSN string
	Now func() time.Time
	// contains filtered or unexported fields
}

func NewDB

func NewDB(dsn string) *DB

func (*DB) BeginTx

func (db *DB) BeginTx(ctx context.Context) (*Tx, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) Open

func (db *DB) Open() error

type TableService

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

func NewTableService

func NewTableService(db *DB, schema string) *TableService

func (*TableService) List

func (s *TableService) List(ctx context.Context, names []string) ([]*tablemaker.Table, error)

type Tx

type Tx struct {
	*sqlx.Tx
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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