db

package module
v0.0.0-...-3c03919 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHistoryTable

func CreateHistoryTable(conn *sql.DB, SQL string) error

func GetTables

func GetTables(conn *sql.DB, query string, params []any) ([]string, error)

func WithTransaction

func WithTransaction(conn *sql.DB, fn txCallback)

Types

type InformationSchemaColumn

type InformationSchemaColumn struct {
	Schema   sql.NullString // optional, used for syncing
	Table    sql.NullString // optional, used for syncing
	Name     string         // required, for all drivers
	Type     string         // required, for all drivers
	Position sql.NullInt16  // MySQL/MariaDB
	After    sql.NullString // MySQL/MariaDB
}

Jump to

Keyboard shortcuts

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