pgdb

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewPostgresDB

func NewPostgresDB(url string, schema string, reset bool) (*DB, error)

func (*DB) CopyFrom

func (d *DB) CopyFrom(name string, r io.Reader) error

func (*DB) EnsureTable

func (d *DB) EnsureTable(name string, tableSchema string) error

func (*DB) InsertRecords

func (d *DB) InsertRecords(name string, records []map[string]any, columns []string) error

func (*DB) SchemaName

func (d *DB) SchemaName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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