schema

package
v1.6.66-0...-410d695 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RAW_SQL_ROOT_DIR = "/etc/metadb/schema/rawsql"

	DB_VERSION_TABLE    = "db_version"
	DB_VERSION_EXPECTED = "7.0.1.2"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SqlFmt

type SqlFmt interface {
	SetConfig(config.Config)
	GetRawSqlDirectory(parentDir string) string
	CreateDatabase() string
	DropDatabase() string
	SelectDatabase() string
	SelectTable(string) string
	SelectColumn(tableName, columnName string) string
	InsertDBVersion(tableName, version string) string
}

func GetSqlFmt

func GetSqlFmt(cfg config.Config) SqlFmt

Directories

Path Synopsis
rawsql

Jump to

Keyboard shortcuts

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