class Table implements SchemaObject (View source)

Class Table

Properties

$name

Methods

int
count()

Fetch the number of rows in the table.

delete()

Deletes rows from a table.

bool
existsInDatabase()

Verifies if this table exists in the database.

string
getName()

Returns the name of this database object.

getSchema()

Fetch the schema associated with the table.

getSession()

Get session associated with the table.

insert(string|string[] $columns, string|string[] ...$additionalColumns)

Inserts rows into a table.

bool
isView()

Determine if the underlying object is a view or not.

select(string|string[] $columns, string|string[] ...$additionalColumns)

Fetches data from a table.

update()

Updates columns in a table.

Details

int count()

Fetch the number of rows in the table.

Return Value

int

TableDelete delete()

Deletes rows from a table.

Return Value

TableDelete

bool existsInDatabase()

Verifies if this table exists in the database.

Return Value

bool

string getName()

Returns the name of this database object.

Return Value

string

Schema getSchema()

Fetch the schema associated with the table.

Return Value

Schema

Session getSession()

Get session associated with the table.

Return Value

Session

TableInsert insert(string|string[] $columns, string|string[] ...$additionalColumns)

Inserts rows into a table.

Parameters

string|string[] $columns

The columns to insert data into. Can be an array with one or more values, or a string.

string|string[] ...$additionalColumns

Additional columns definitions.

Return Value

TableInsert

bool isView()

Determine if the underlying object is a view or not.

Return Value

bool

TableSelect select(string|string[] $columns, string|string[] ...$additionalColumns)

Fetches data from a table.

Parameters

string|string[] $columns

The columns to select data from. Can be an array with one or more values, or a string.

string|string[] ...$additionalColumns

Additional columns parameter definitions.

Return Value

TableSelect

TableUpdate update()

Updates columns in a table.

Return Value

TableUpdate