Discover Packages
github.com/huangjunwen/golibs
mycanal
fulldump
package
Version:
v0.0.0-...-d6dd603
Opens a new window with list of versions in this module.
Published: Jul 12, 2021
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package fulldump provides helper functions for full dump.
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:
Handler is used to dump content.
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.
FullTableQuery full dump a table.
Query and returns RowIter
Source Files
¶
Click to show internal directories.
Click to hide internal directories.