Documentation ¶ Index ¶ type DB func NewPostgresDB(url string, schema string, reset bool) (*DB, error) func (d *DB) CopyFrom(name string, r io.Reader) error func (d *DB) EnsureTable(name string, tableSchema string) error func (d *DB) InsertRecords(name string, records []map[string]any, columns []string) error func (d *DB) SchemaName() string 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 Source Files ¶ View all Source files db.go Directories ¶ Show internal Expand all Path Synopsis dbv2 Click to show internal directories. Click to hide internal directories.