Skip to main content

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
NAMETYPEDESCRIPTION
namestring
columns[Lorg.netuno.tritao.db.manager.Column;[]
Return

( Table )


drop


drop(name: string) : Table

Attributes
NAMETYPEDESCRIPTION
namestring
Return

( Table )


getKey


getKey() : string

Return

( string )


isH2


isH2() : boolean

Return

( boolean )


isH2(builder: org.netuno.tritao.db.Builder) : boolean

Attributes
NAMETYPEDESCRIPTION
builderorg.netuno.tritao.db.Builder
Return

( boolean )


isMSSQL


isMSSQL() : boolean

Return

( boolean )


isMSSQL(builder: org.netuno.tritao.db.Builder) : boolean

Attributes
NAMETYPEDESCRIPTION
builderorg.netuno.tritao.db.Builder
Return

( boolean )


isMariaDB


isMariaDB() : boolean

Return

( boolean )


isMariaDB(builder: org.netuno.tritao.db.Builder) : boolean

Attributes
NAMETYPEDESCRIPTION
builderorg.netuno.tritao.db.Builder
Return

( boolean )


isPostgreSQL


isPostgreSQL() : boolean

Return

( boolean )


isPostgreSQL(builder: org.netuno.tritao.db.Builder) : boolean

Attributes
NAMETYPEDESCRIPTION
builderorg.netuno.tritao.db.Builder
Return

( boolean )


newColumn


newColumn() : Column

Return

( Column )


rename


rename(oldName: string, newName: string) : Table

Attributes
NAMETYPEDESCRIPTION
oldNamestring
newNamestring
Return

( Table )


renameIfExists


renameIfExists(oldName: string, newName: string) : Table

Attributes
NAMETYPEDESCRIPTION
oldNamestring
newNamestring
Return

( Table )


sequence


sequence() : boolean

Return

( boolean )