Table
Realiza a manipulação de tabelas em base de dados.
if (_db.checkExists().table("clients")) {
_db.table().rename(
"clients", // Nome Antigo
"client" // Novo Nome
);
}
create
create(name: string, columns: [Lorg.netuno.tritao.db.manager.Column;[]) : Table
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
name | string | |
columns | [Lorg.netuno.tritao.db.manager.Column;[] |
Return
( Table )
drop
drop(name: string) : Table
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
name | string |
Return
( Table )
getKey
getKey() : string
Return
( string )
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 )
newColumn
newColumn() : Column
Return
( Column )
rename
rename(oldName: string, newName: string) : Table
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
oldName | string | |
newName | string |
Return
( Table )
renameIfExists
renameIfExists(oldName: string, newName: string) : Table
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
oldName | string | |
newName | string |
Return
( Table )
sequence
sequence() : boolean
Return
( boolean )