Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeRowForRecord ¶
func EncodeRowForRecord(encTable table.Table, sqlMode mysql.SQLMode, row []types.Datum, columnPermutation []int) string
EncodeRowForRecord encodes a row to a string compatible with INSERT statements.
func NewTiDBBackend ¶
func NewTiDBBackend(db *sql.DB, onDuplicate string, errorMgr *errormanager.ErrorManager) backend.Backend
NewTiDBBackend creates a new TiDB backend using the given database.
The backend does not take ownership of `db`. Caller should close `db` manually after the backend expired.
Types ¶
type TableAutoIDInfo ¶
func FetchTableAutoIDInfos ¶
func FetchTableAutoIDInfos(ctx context.Context, exec utils.QueryExecutor, tableName string) ([]*TableAutoIDInfo, error)
Click to show internal directories.
Click to hide internal directories.