CheckExists
Verifica se sequências, tabelas, colunas e indexes existem na base de dados.
if (!_db.checkExists().table("client")) {
_db.table().create(
"client",
_db.column().setName("id").setType("int").setPrimaryKey(true),
_db.column().setName("name").setType("varchar").setNotNull(true).setDefault()
);
}
column
column(table: string, column: string) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
table | string | |
column | string |
Return
( boolean )
getKey
getKey() : string
Return
( string )
index
index(index: string) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | string |
Return
( boolean )
index(tableName: string, columnName: string) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
tableName | string | |
columnName | string |
Return
( boolean )
isH2
isH2() : boolean
Return
( boolean )
isH2(builder: org.netuno.tritao.db.Builder) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
builder | org.netuno.tritao.db.Builder |
Return
( boolean )
isMSSQL
isMSSQL() : boolean
Return
( boolean )
isMSSQL(builder: org.netuno.tritao.db.Builder) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
builder | org.netuno.tritao.db.Builder |
Return
( boolean )
isMariaDB
isMariaDB() : boolean
Return
( boolean )
isMariaDB(builder: org.netuno.tritao.db.Builder) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
builder | org.netuno.tritao.db.Builder |
Return
( boolean )
isPostgreSQL
isPostgreSQL() : boolean
Return
( boolean )
isPostgreSQL(builder: org.netuno.tritao.db.Builder) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
builder | org.netuno.tritao.db.Builder |
Return
( boolean )
sequence
sequence() : boolean
Return
( boolean )
sequence(name: string) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
name | string |
Return
( boolean )
sequence(tableName: string, columnName: string) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
tableName | string | |
columnName | string |
Return
( boolean )
table
table(table: string) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
table | string |
Return
( boolean )