extractdb

package
v0.0.0-...-0d3d74d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterIDs

func ClusterIDs(uniqueIDList map[int]string, clusterSize int, IDDataTypeString bool) map[int]string

ClusterIDs serialises ID's for 'IN' clause in SQL-statement, E.g. 1234','2345','3456','5678

func Deduplicate

func Deduplicate(IDLists []map[int]string) map[int]string

Deduplicate receives multiple maps of ID's and returns a single map containing unique values

func EventToResourceIDs

func EventToResourceIDs(ctx context.Context, db *sql.DB, fh *sql.DB, sourceTable string, srcLsnMax string, srcQuery string) map[int]string

EventToResourceIDs load CDC rows and return a map

func LsnMax

func LsnMax(ctx context.Context, db *sql.DB) string

LsnMax fetch max Lsn in source database

func MsSQLInit

func MsSQLInit(connectionName string, ConnMaxLifetimeHours int, MaxIdleConns int, MaxOpenConns int) (*sql.DB, context.Context)

MsSQLInit checks connection (ping) and sets, e.g., maximum amount of concurrent connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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