database

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildParams added in v0.8.0

func BuildParams(config *data.StreamConfig) []interface{}

Types

type Batch

type Batch = data.Batch

type Column

type Column = data.Column

func MapToMvrColumns added in v0.1.0

func MapToMvrColumns(columns []*sql.ColumnType) []Column

type DataStream

type DataStream = data.DataStream

type MSDataReader added in v0.5.0

type MSDataReader struct {
	Conn             *sql.DB
	KeepOriginalUUID bool
}

func NewMSDataReader added in v0.5.0

func NewMSDataReader(connUrl *url.URL) (*MSDataReader, error)

func (*MSDataReader) Close added in v0.5.0

func (reader *MSDataReader) Close() error

func (*MSDataReader) CreateDataStream added in v0.5.0

func (reader *MSDataReader) CreateDataStream(ctx context.Context, connUrl *url.URL, config *data.StreamConfig) (*DataStream, error)

func (*MSDataReader) ExecuteDataStream added in v0.5.0

func (reader *MSDataReader) ExecuteDataStream(ctx context.Context, ds *DataStream, config *data.StreamConfig) error

type PGDataReader added in v0.1.0

type PGDataReader struct {
	Pool *pgxpool.Pool
}

func NewPGDataReader added in v0.1.0

func NewPGDataReader(connUrl *url.URL) (*PGDataReader, error)

func (*PGDataReader) Close added in v0.1.0

func (pool *PGDataReader) Close() error

func (*PGDataReader) CreateDataStream added in v0.1.0

func (pool *PGDataReader) CreateDataStream(ctx context.Context, connUrl *url.URL, config *data.StreamConfig) (ds *DataStream, err error)

func (*PGDataReader) ExecuteDataStream added in v0.1.0

func (pool *PGDataReader) ExecuteDataStream(ctx context.Context, ds *DataStream, config *data.StreamConfig) error

type SnowflakeDataReader added in v0.1.0

type SnowflakeDataReader struct {
	Snowflake *sql.DB
}

func NewSnowflakeDataReader added in v0.1.0

func NewSnowflakeDataReader(connUrl *url.URL) (*SnowflakeDataReader, error)

func (*SnowflakeDataReader) Close added in v0.1.0

func (sf *SnowflakeDataReader) Close() error

func (*SnowflakeDataReader) CreateDataStream added in v0.1.0

func (sf *SnowflakeDataReader) CreateDataStream(ctx context.Context, connUrl *url.URL, config *data.StreamConfig) (ds *DataStream, err error)

func (*SnowflakeDataReader) ExecuteDataStream added in v0.1.0

func (sf *SnowflakeDataReader) ExecuteDataStream(ctx context.Context, ds *DataStream, config *data.StreamConfig) error

Jump to

Keyboard shortcuts

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