utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CDCFlagColumnName       = "tidb2dw_flag"
	CDCTablenameColumnName  = "tidb2dw_tablename"
	CDCSchemanameColumnName = "tidb2dw_schemaname"
	CDCCommitTsColumnName   = "tidb2dw_commit_ts"
)

Functions

func EscapeString

func EscapeString(s string) string

func GenIncrementTableColumns

func GenIncrementTableColumns(columns []cloudstorage.TableCol) []cloudstorage.TableCol

func SplitTableFQN

func SplitTableFQN(tableFQN string) (string, string)

SplitTableFQN splits a full-qualified table name into database and table name e.g. "mydb.mytable" -> "mydb", "mytable" Note: this function does not check if the input is a valid table name

Types

This section is empty.

Jump to

Keyboard shortcuts

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