load

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSession

func NewSession(dialect *info.Dialect) io.Session

NewSession returns new Postgres load session

Types

type Session

type Session struct {
	*io.Transaction
	// contains filtered or unexported fields
}

Session represents Postgres load session

func (*Session) Exec

func (s *Session) Exec(ctx context.Context, data interface{}, db *sql.DB, tableName string, options ...option.Option) (sql.Result, error)

Exec inserts data to table using "Copy in"

Jump to

Keyboard shortcuts

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