Documentation ¶
Overview ¶
Package fulldump provides helper functions for full dump.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullDump ¶
func FullDump( ctx context.Context, cfg *FullDumpConfig, handler Handler, ) (gtidSet string, err error)
FullDump is similar to mysqldump --single-transaction, see mycanal's doc for prerequisites.
NOTE: Since `BeginTx` can not run 'START TRANSACTION WITH CONSISTENT SNAPSHOT', use `*sql.Conn` instead of `*sql.Tx`. More discussions:
Other refs:
Types ¶
type RowIter ¶
RowIter is used for result set iteration. It returns nil if no more row. Caller should invoke RowIter(false) to close the iterator and release resource.
func FullTableQuery ¶
FullTableQuery full dump a table.
Click to show internal directories.
Click to hide internal directories.