affected affected_rows(
)
|
|
Evaluate the result; which rows were affected by the query.
API Tags:
Redefinition of:
- atkDb::affected_rows()
- Retrieve the number of rows affected by the last query.
Connect to the database
API Tags:
Redefinition of:
- atkDb::connect()
- Connect to the database.
Disconnect from database, we use a persistent
link, so this won't be necessary!
Redefinition of:
- atkDb::disconnect()
- Disconnect from database
This function indicates what searchmodes the database supports.
API Tags:
| Return: | with search modes |
Redefinition of:
- atkDb::getSearchModes()
- This function indicates what searchmodes the database supports.
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:
- atkDb::lock()
- Lock a 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:
- atkDb::metadata()
- Return the meta data of a certain table HIE GEBLEVEN
the nextid(
string
$sequence
)
|
|
Get the next sequence number of a certain sequence.
Parameters:
|
string |
$sequence: |
the sequence name |
API Tags:
Redefinition of:
- atkDb::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:
- atkDb::next_record()
- Retrieve the next record in the resultset.
Evaluatie the result; how many fields where affected by the query.
API Tags:
| Return: | of affected fields |
Evaluate the result; how many rows were affected by the query.
API Tags:
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 |
Redefinition of:
- atkDb::query()
- Parse and execute a query.
void seek(
[int
$position = 0]
)
|
|
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 tableExists(
string
$table
)
|
|
Check if table exists.
Parameters:
|
string |
$table: |
the table to find |
API Tags:
| Return: | true if found, false if not found |
Redefinition of:
- atkDb::tableExists()
- This function checks the database for a table with the provide name
Return the available table names
API Tags:
| Return: | with table names etc. |
Redefinition of:
- atkDb::table_names()
- Return the available table names
Unlock table(s) in the database
API Tags:
Redefinition of:
- atkDb::unlock()
- Relieve all locks.
int _translateError(
[mixed
$error = ""]
)
|
|
TODO FIXME: I don't know what errormessges postgresql gives, so this function only returns DB_UNKNOWNERROR for now.
Parameters:
API Tags:
| Return: | The ATK error code |
Redefinition of:
- atkDb::_translateError()
- Translate database-vendor dependent error messages into an ATK generic error code.