data

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 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 Inserter

type Inserter struct {
}

func NewInserter

func NewInserter() *Inserter

func (*Inserter) Insert

func (i *Inserter) Insert(
	ctx context.Context,
	cn *conn.Connection,
	table string,
	dataset []map[string]interface{},
) (int64, error)

func (*Inserter) Upsert

func (i *Inserter) Upsert(
	ctx context.Context,
	cn *conn.Connection,
	table *schema.Table,
	dataset []map[string]interface{},
) (int64, error)

type Loader

type Loader struct{}

func NewLoader

func NewLoader() *Loader

func (*Loader) Load

func (l *Loader) Load(ctx context.Context, conn *conn.Connection, table string) (TableData, error)

type TableData

type TableData []map[string]interface{}

func (*TableData) FilterColumns

func (d *TableData) FilterColumns(filter func(col string) bool) TableData

Jump to

Keyboard shortcuts

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