database

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCsvFromXlsx

func CreateCsvFromXlsx(xlsxFileName string) (*os.File, error)

func GetMssqlRowsFromCsv

func GetMssqlRowsFromCsv(databaseName, targetTable, targetConn string, file *os.File) error

func GetRowsFromCsv

func GetRowsFromCsv(targetConn, targetTable, targetDriver string, file *os.File) error

func InsertRowsIntoCsv

func InsertRowsIntoCsv(rows *sql.Rows, writer *csv.Writer) error

func PingConnection

func PingConnection(conn, driver string) error

func PingConnections

func PingConnections(sourceConn, sourceDriver, targetConn, targetDriver string) error

func SelectMssqlRows

func SelectMssqlRows(sourceDb, sourceConn, sourceDriver, sourceTable string) (rows *sql.Rows, err error)

func SelectQueryRows

func SelectQueryRows(query, sourceConn, sourceDb string) (rows *sql.Rows, err error)

func SelectRows

func SelectRows(sourceConn, sourceDb, sourceTable string) (rows *sql.Rows, err error)

func SwitchDbDriver

func SwitchDbDriver(driver, conn string) (*sql.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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