Documentation
¶
Index ¶
- func DumpAllTablesData(db *sql.DB, writer *bufio.Writer, schemaMetadata map[string]schemareader.Table, ...)
- func GetRowsFromKeys(db *sql.DB, table schemareader.Table, keys []TableKey) [][]sqlUtil.RowDataStructure
- func PrintTableDataOrdered(db *sql.DB, writer *bufio.Writer, schemaMetadata map[string]schemareader.Table, ...)
- type DataDumper
- type PrintSqlOptions
- type TableDump
- type TableKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpAllTablesData ¶
func DumpAllTablesData(db *sql.DB, writer *bufio.Writer, schemaMetadata map[string]schemareader.Table, startingTables []schemareader.Table, whereFilterClause func(table schemareader.Table) string, onlyIfParentExistsTables []string)
func GetRowsFromKeys ¶
func GetRowsFromKeys(db *sql.DB, table schemareader.Table, keys []TableKey) [][]sqlUtil.RowDataStructure
GetRowsFromKeys check if we should move this to a method in the type tableData
func PrintTableDataOrdered ¶
func PrintTableDataOrdered(db *sql.DB, writer *bufio.Writer, schemaMetadata map[string]schemareader.Table, startingTable schemareader.Table, data DataDumper, options PrintSqlOptions)
Types ¶
type DataDumper ¶
func DataCrawler ¶
func DataCrawler(db *sql.DB, schemaMetadata map[string]schemareader.Table, startTable schemareader.Table, startQueryFilter string) DataDumper
DataCrawler will go through all the elements in the initialDataSet an extract related data for all tables presented in the schemaMetadata by following foreign keys and references to the table row The result will be a structure containing ID of each row which should be exported per table
type PrintSqlOptions ¶
Click to show internal directories.
Click to hide internal directories.