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, ...)
- func SubstituteForeignKey(db *sql.DB, table schemareader.Table, tables map[string]schemareader.Table, ...) []sqlUtil.RowDataStructure
- type Callback
- 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)
func SubstituteForeignKey ¶ added in v0.1.0
func SubstituteForeignKey(db *sql.DB, table schemareader.Table, tables map[string]schemareader.Table, row []sqlUtil.RowDataStructure) []sqlUtil.RowDataStructure
Types ¶
type Callback ¶ added in v0.1.0
type Callback func(db *sql.DB, writer *bufio.Writer, schemaMetadata map[string]schemareader.Table, table schemareader.Table, data DataDumper)
type DataDumper ¶
func DataCrawler ¶
func DataCrawler(db *sql.DB, schemaMetadata map[string]schemareader.Table, startTable schemareader.Table, startQueryFilter string, startingDate 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.