Documentation ¶
Index ¶
- func BuildCreateTableQuery(label string, flag string, headers []Header) string
- func BuildInsertPrefixQuery(label string, flag string, headers []Header) string
- func BuildInsertValuesQuery(prefix string, row []interface{}) string
- func CheckClusterConflicts(name string, names []string) (int, error)
- func CheckClusterStatus(urls []string) error
- func CheckTableExists(dbURI string, schemaName string, tableName string) (bool, error)
- type Header
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCreateTableQuery ¶
BuildCreateTableQuery generates a CREATE TABLE query from the given arguments.
func BuildInsertPrefixQuery ¶
BuildInsertPrefixQuery generates a prefix for an insertion query without the values expression.
func BuildInsertValuesQuery ¶
BuildInsertValuesQuery generates the values expression for an insertion query.
func CheckClusterConflicts ¶
CheckClusterConflicts scans through registered databases and compares a given string for existing naming conflicts. If it encounters a conflict, it will return the index of the conflicting database entry in the config.
func CheckClusterStatus ¶
CheckClusterStatus iterates through registered databases as defined in the configuration file and checks to ensure they are present and accessible.
Types ¶
Click to show internal directories.
Click to hide internal directories.