Methods

Constructor of database class.

__construct(array $options) : void

Parameters

$options

array

Optional assoziative options. The value depends on used DBMS, but is generally as follows: - $options['connection']['host'] (string) Hostname or ip - $options['connection']['database'] (string) Database name - $options['connection']['user'] (string) User name - $options['connection']['password'] (string) User password - $options['nolock'] (bool) Optional, not lock table - $options['sequenceTable'] (string) Optional, sequesnce table - $options['haltBehavior'] (string) Optional, halt behavior on occured errors - $options['haltMsgPrefix'] (string) Optional, Text to prepend to the halt message - $options['enableProfiling'] (bool) Optional, flag to enable profiling

Returns the metada of passed table

copyResultToArray(string $sTable) : array | bool

deprecated Use db drivers toArray() method instead

Parameters

$sTable

string

The tablename of empty string to retrieve metadata of all tables!

Returns

arrayboolAssoziative metadata array (result depends on used db driver) or false in case of an error

Fetches the next recordset from result set

next_record()