public class Schema extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Schema.ColumnType |
class |
Schema.Sequence |
class |
Schema.Table |
| Constructor and Description |
|---|
Schema() |
| Modifier and Type | Method and Description |
|---|---|
Schema.Sequence |
addSequence(String name) |
Schema.Table |
addTable(String name) |
Schema.Table |
addTableFromRow(String tableName,
Row r) |
void |
execute(Supplier<Database> db) |
String |
print(Flavor flavor) |
Schema |
userTableName(String userTableName)
Set the table to which the foreign key will be created for
user change tracking (
Schema.Table.trackCreateTimeAndUser(String)
and Schema.Table.trackUpdateTimeAndUser(String)). |
void |
validate() |
Schema |
withoutForeignKeyIndexing() |
public Schema.Sequence addSequence(String name)
public Schema withoutForeignKeyIndexing()
public Schema userTableName(String userTableName)
Schema.Table.trackCreateTimeAndUser(String)
and Schema.Table.trackUpdateTimeAndUser(String)).userTableName - the default table name containing userspublic void validate()
public Schema.Table addTable(String name)
public Schema.Table addTableFromRow(String tableName, Row r)
Copyright © 2020. All rights reserved.