$type
$type : string
Query type.
Abstract query builder class.
The AbstractQueryBuilder
class provides a foundation for building SQL queries
in an object-oriented manner. It supports various common SQL operations,
including SELECT, INSERT, UPDATE, and DELETE queries. *
$connection : \Omega\Database\Adapter\DatabaseAdapterInterface
select(mixed $columns = '*') : $this
Indicate the query type is a "select" and remember which fields should be returned by the query.
mixed | $columns | Holds the column name. |
if the columns is not a string or an arrya of string.
insert(string[] $columns, array $values) : int|bool
Insert a row of data into the table specified in the query and return the number of affected rows.
string[] | $columns | Holds an array of columns. |
array | $values | Holds an array of values. |
Return the number of affected rows.
update(string[] $columns, array $values) : int|bool
Insert a row of data into the table specified in the query and return the number of affected rows.
string[] | $columns | Holds an array of columns. |
array | $values | Holds an array of values. |
Return the number of affected rows.