OTS_DB_MySQL __construct(
array
$params
)
|
|
Creates database connection.
Creates database connection.
Connects to MySQL database on given arguments.
List of parameters for this drivers:
- host - database server.
- port - port (optional, also it is possible to use host:port in host parameter).
- database - database name.
- user - user login.
- password - user password.
Parameters:
|
array |
$params: |
Connection parameters. |
API Tags:
Information Tags:
| Version: | 0.0.6 |
| Version: | 0.0.1 |
| Throws: | PDOException On PDO operation error. |
string fieldName(
string
$name
)
|
|
Query-quoted field name.
Query-quoted field name.
Parameters:
|
string |
$name: |
Field name. |
API Tags:
| Return: | Quoted name. |
| Access: | public |
Information Tags:
Redefinition of:
- OTS_Base_DB::fieldName()
- Query-quoted field name.
string limit(
[int|bool
$limit = false], [int|bool
$offset = false]
)
|
|
LIMIT/OFFSET clause for queries.
LIMIT/OFFSET clause for queries.
Parameters:
|
int|bool |
$limit: |
Limit of rows to be affected by query (false if no limit). |
|
int|bool |
$offset: |
Number of rows to be skipped before applying query effects (false if no offset). |
API Tags:
| Return: | LIMIT/OFFSET SQL clause for query. |
| Access: | public |
Information Tags:
Redefinition of:
- OTS_Base_DB::limit()
- LIMIT/OFFSET clause for queries.