affected affected_rows(
)
|
|
Evaluate the result; which rows were affected by the query.
API Tags:
Redefinition of:
- atkMysqlDb::affected_rows()
- Evaluate the result; which rows were affected by the query.
Commit the current transaction.
Redefinition of:
- atkDb::commit()
- Commit the current transaction.
Connect to the database
API Tags:
Redefinition of:
- atkDb::connect()
- Connect to the database.
Get localized error message (for display in the application)
API Tags:
Redefinition of:
- atkDb::getErrorMsg()
- Get localized error message (for display in the application)
array getrows(
string
$query, [int
$offset = -1], [int
$limit = -1]
)
|
|
Get all rows that are the result of a certain specified query
Note: This is not an efficient way to retrieve records, as this will load all records into one array into memory. If you retrieve a lot of records, you might hit the memory_limit and your script will die.
Parameters:
|
string |
$query: |
the query |
|
int |
$offset: |
The offset to use |
|
int |
$limit: |
The limit to use |
API Tags:
result lock(
string
$table, [string
$mode = "write"]
)
|
|
Lock a certain table in the database
Parameters:
|
string |
$table: |
the table name |
|
string |
$mode: |
the type of locking |
API Tags:
Redefinition of:
- atkMysqlDb::lock()
- Lock a certain table in the database
array metadata(
string
$table, [bool
$full = false]
)
|
|
Return the meta data of a certain table
Parameters:
|
string |
$table: |
the table name |
|
bool |
$full: |
all meta data or not |
API Tags:
Redefinition of:
- atkMysqlDb::metadata()
- Return the meta data of a certain table
the nextid(
string
$sequence
)
|
|
Get the next sequence number of a certain sequence.
Parameters:
|
string |
$sequence: |
the sequence name |
API Tags:
Redefinition of:
- atkMysqlDb::nextid()
- Get the next sequence number of a certain sequence.
Goto the next record in the result set
API Tags:
| Return: | of going to the next record |
Redefinition of:
- atkMysqlDb::next_record()
- Goto the next record in the result set
Evaluatie the result; how many fields where affected by the query.
API Tags:
| Return: | of affected fields |
Redefinition of:
- atkMysqlDb::num_fields()
- Evaluatie the result; how many fields where affected by the query.
Evaluate the result; how many rows were affected by the query.
API Tags:
Redefinition of:
- atkMysqlDb::num_rows()
- Evaluate the result; how many rows were affected by the query.
void query(
string
$query, [int
$offset = -1], [int
$limit = -1]
)
|
|
Performs a query
Parameters:
|
string |
$query: |
the query |
|
int |
$offset: |
offset in record list |
|
int |
$limit: |
maximum number of records |
Information Tags:
| Todo: | implement limit and offset support |
Redefinition of:
- atkMysqlDb::query()
- Performs a query
Rollback the the current transaction.
API Tags:
Redefinition of:
- atkDb::rollback()
- Rollback the current transaction.
void seek(
[int
$position = 0], [bool
$haltOnError = true]
)
|
|
Goto a certain position in result set.
Not specifying a position will set the pointer at the beginning of the result set.
Parameters:
|
int |
$position: |
the position |
|
bool |
$haltOnError: |
|
Redefinition of:
- atkMysqlDb::seek()
- Goto a certain position in result set.
Return the available table names
API Tags:
| Return: | with table names etc. |
Redefinition of:
- atkMysqlDb::table_names()
- Return the available table names
Unlock table(s) in the database
API Tags:
Redefinition of:
- atkMysqlDb::unlock()
- Unlock table(s) in the database
int _translateError(
mixed
$errno
)
|
|
Translate database-vendor dependent error messages into an ATK generic error code.
Parameters:
|
mixed |
$errno: |
Vendor-dependent error code. |
API Tags:
| Return: | ATK error code |
| Access: | private |
Redefinition of:
- atkMysqlDb::_translateError()
- Translates known database errors to developer-friendly messages