| Package | Description |
|---|---|
| com.github.drinkjava2.jdialects | |
| com.github.drinkjava2.jdialects.model |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
DDLCreateUtils.toCreateDDL(Dialect dialect,
Table... tables)
Transfer tables to DDL by given dialect and without format it, if want
get a formatted DDL, use DDLFormatter.format(DDLs) method to format it
|
String[] |
Dialect.toCreateDDL(Table... tables)
Transfer tables to formatted create DDL
|
String[] |
Dialect.toDropAndCreateDDL(Table... tables)
Transfer tables to drop and create DDL String array
|
static String[] |
DDLDropUtils.toDropDDL(Dialect dialect,
Table... tables)
Transfer tables to drop DDL and without format it
|
String[] |
Dialect.toDropDDL(Table... tables)
Transfer tables to formatted drop DDL
|
| Modifier and Type | Method and Description |
|---|---|
Table |
Table.addColumn(Column column)
Add a column definition piece in DDL
|
Table |
Table.check(String check)
Add the table check String DDL piece if support
|
Table |
Table.comment(String comment)
Add the table comment String DDL piece if support
|
Table |
Table.engineTail(String engineTail)
If support engine like MySQL or MariaDB, add engineTail at the end of
"create table..." DDL, usually used to set encode String like " DEFAULT CHARSET=utf8" for MySQL
|
Copyright © 2017. All rights reserved.