redshift

package
v0.0.0-...-572e296 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*Connection
	*sql.DB
}

func (*Client) Connect

func (r *Client) Connect() error

func (*Client) Insert

func (r *Client) Insert(vals [][]interface{}, insertStr string, maxlen int, strs *[]string, args *[]interface{}) error

func (*Client) InsertBulk

func (r *Client) InsertBulk(schema, table string, values [][]interface{}) error

func (*Client) Replace

func (r *Client) Replace(schema, table string, values [][]interface{}) error

func (*Client) Truncate

func (r *Client) Truncate(schema, table string) error

type Connection

type Connection struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
	User string `mapstructure:"user"`
	Name string `mapstructure:"dbname"`
}

func (*Connection) String

func (c *Connection) String() string

Jump to

Keyboard shortcuts

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