namespace \webfiori\database
class Database
Class Methods Summary
Class Methods Details
Parameters:
- ConnectionInfo $connectionInfo An object that holds database connection information.
Parameters:
Parameters:
- Table $table the table that will be added.
Parameters:
- AbstractQuery|string $col A string that represents the name of the column that will be evaluated. This also can be an object of type 'AbstractQuery' in case the developer would like to build a sub-where condition.
- string $cond A string that represents the condition at which column value will be evaluated against. Can be ignored if first parameter is of type 'AbstractQuery'.
- mixed $val The value (or values) at which the column will be evaluated against. Can be ignored if first parameter is of type 'AbstractQuery'.
Parameters:
- string $tblName The name of the table.
Parameters:
- string $tableName The name of the table.
Parameters:
- array $colsAndVals An associative array that holds the columns and values. The indices of the array should be column keys and the values of the indices are the new values.
Parameters:
- int $limit A number which is greater than 0.
Parameters:
- int $offset Number of records to skip.
Parameters:
- AbstractQuery|string $col A string that represents the name of the column that will be evaluated. This also can be an object of type 'AbstractQuery' in case the developer would like to build a sub-where condition.
- string $cond A string that represents the condition at which column value will be evaluated against. Can be ignored if first parameter is of type 'AbstractQuery'.
- mixed $val The value (or values) at which the column will be evaluated against. Can be ignored if first parameter is of type 'AbstractQuery'.
Parameters:
Parameters:
- array $cols An array that holds the keys of the columns that will be selected.
Parameters:
- Connection $con An active connection.
Parameters:
- ConnectionInfo $info An object that holds connection information.
Parameters:
- string $query A string that represents the query.
Parameters:
- string $tblName The name of the table.
Parameters:
- array $newColsVals An associative array that holds the columns and values. The indices of the array should be column keys and the values of the indices are the new values.
Parameters:
- AbstractQuery|string $col A string that represents the name of the column that will be evaluated. This also can be an object of type 'AbstractQuery' in case the developer would like to build a sub-where condition.
- string $cond A string that represents the condition at which column value will be evaluated against. Can be ignored if first parameter is of type 'AbstractQuery'.
- mixed $val The value (or values) at which the column will be evaluated against. Can be ignored if first parameter is of type 'AbstractQuery'.
- string $joinCond An optional string which can be used to join multiple where conditions. If not provided, 'and' will be used by default.