db

package
v0.0.0-...-801d34a Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetByID

func GetByID(db *sqlx.DB) (map[string]interface{}, error)

func GetConn

func GetConn(connMap map[string]any) *sqlx.DB

func SelectAndInsert

func SelectAndInsert(dbsrc *sqlx.DB, dbdest *sqlx.DB, tables []Table) (int, error)

Types

type Table

type Table struct {
	Table string `json:"table" db:"Table"`
	DDL   string `json:"ddl" db:"Create Table"`
}

func GetTables

func GetTables(db *sqlx.DB, tableNames []interface{}) (tables []Table, err error)

Jump to

Keyboard shortcuts

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