Class SchemaFulldumpManager
-
- All Implemented Interfaces:
public final class SchemaFulldumpManagerDump table structure
- Since:
2019-12-15
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumSchemaFulldumpManager.SqlTypepublic final classSchemaFulldumpManager.SqlString
-
Constructor Summary
Constructors Constructor Description SchemaFulldumpManager(SqlStatementParser sqlStatementParser, SchemaDefinitionLoader schemaDefinitionLoader)
-
Method Summary
Modifier and Type Method Description final UnitsaveFile(String path, List<SchemaFulldumpManager.SqlString> sqls)final UnitsaveFile(File file, List<SchemaFulldumpManager.SqlString> sqls)final List<SchemaFulldumpManager.SqlString>dumpDdl(DataSource database, Function1<List<String>, List<String>> filterSorter)Dump DDL for the database (table, index and trigger), the element starting with --is a comment.final List<SchemaFulldumpManager.SqlString>dumpRec(DataSource database, Function1<List<String>, List<String>> filterSorter)Dump data in insert statement for the database, the element starting with --is a comment.final static Function1<List<String>, List<String>>excludeRegexp(String regex)Exclude Those that satisfy the RegExp (matches all, case-insensitive) and sorted in ascii order final static Function1<List<String>, List<String>>includeRegexp(String regex)Include Those that satisfy the RegExp (matches all, case-insensitive) and sorted in ascii order final static Function1<List<String>, List<String>>groupedTable(Boolean only, String table)Filter and sort by string equality (case-insensitive). final static Function1<List<String>, List<String>>groupedRegexp(Boolean only, String regexp)Filter and sort by Regexp (matches all, case-insensitive) Where --at the beginning denotes a grouping divider.-
-
Constructor Detail
-
SchemaFulldumpManager
SchemaFulldumpManager(SqlStatementParser sqlStatementParser, SchemaDefinitionLoader schemaDefinitionLoader)
-
-
Method Detail
-
saveFile
final Unit saveFile(String path, List<SchemaFulldumpManager.SqlString> sqls)
-
saveFile
final Unit saveFile(File file, List<SchemaFulldumpManager.SqlString> sqls)
-
dumpDdl
final List<SchemaFulldumpManager.SqlString> dumpDdl(DataSource database, Function1<List<String>, List<String>> filterSorter)
Dump DDL for the database (table, index and trigger), the element starting with
--is a comment.- Parameters:
database- databasefilterSorter- filter and sorter- Returns:
table and sql string
-
dumpRec
final List<SchemaFulldumpManager.SqlString> dumpRec(DataSource database, Function1<List<String>, List<String>> filterSorter)
Dump data in insert statement for the database, the element starting with
--is a comment.- Parameters:
database- databasefilterSorter- filter and sorter- Returns:
table and sql string
-
excludeRegexp
final static Function1<List<String>, List<String>> excludeRegexp(String regex)
Exclude Those that satisfy the RegExp (matches all, case-insensitive) and sorted in ascii order
-
includeRegexp
final static Function1<List<String>, List<String>> includeRegexp(String regex)
Include Those that satisfy the RegExp (matches all, case-insensitive) and sorted in ascii order
-
groupedTable
final static Function1<List<String>, List<String>> groupedTable(Boolean only, String table)
Filter and sort by string equality (case-insensitive). Where
--at the beginning denotes a grouping divider.- Parameters:
only- sort by ascii order.
-
-
-
-