|
| __construct ($options=NULL) |
|
| get_pg_ERROR () |
|
| connect ($options=NULL) |
|
| dbQuery ($Sql) |
|
|
| $_pg_conn |
|
| $pg_rows |
|
| $dbName |
|
| $dbUser |
|
| $dbPassword |
|
| $dbHost |
|
Definition at line 28 of file db.php.
◆ _docon()
db::_docon |
( |
|
$options = NULL | ) |
|
|
private |
_docon
private function that creates a persistent connection to a data base. Uses class properties for the connect parameters or accepts them as a set of key value pairs terminated with a ;.
Sets _pg_conn and pg_Error
Definition at line 99 of file db.php.
◆ connect()
db::connect |
( |
|
$options = NULL | ) |
|
connect
public function to connect to the db, uses class properties or passed in options.
- Parameters
-
string | $options | e.g. "user=fonzy; password=thefonz;" |
- Returns
- connection resource
Definition at line 79 of file db.php.
◆ dbQuery()
dbQuery
perform a query, return results
- Parameters
-
string | $Sql | the SQL Query to perform |
- Returns
- array $rows can be empty array.
Definition at line 139 of file db.php.
The documentation for this class was generated from the following file:
- src/testing/lib/testClasses/db.php