The Red Matrix
 All Classes Namespaces Files Functions Variables Pages
dba_postgres Class Reference
Inheritance diagram for dba_postgres:
dba_driver

Public Member Functions

 connect ($server, $port, $user, $pass, $db)
 
 q ($sql)
 
 escape ($str)
 
 escapebin ($str)
 
 unescapebin ($str)
 
 close ()
 
 quote_interval ($txt)
 
 escape_identifier ($str)
 
 optimize_table ($table)
 
 concat ($fld, $sep)
 
 getdriver ()
 
- Public Member Functions inherited from dba_driver
 connect ($server, $port, $user, $pass, $db)
 Connect to the database. More...
 
 q ($sql)
 Perform a DB query with the SQL statement $sql. More...
 
 escape ($str)
 Escape a string before being passed to a DB query. More...
 
 close ()
 Close the database connection. More...
 
 getdriver ()
 Return text name for db driver. More...
 
 __construct ($server, $port, $user, $pass, $db, $install=false)
 
 get_null_date ()
 
 get_install_script ()
 
 utcnow ()
 
 install ($server, $user, $pass, $db)
 
 dbg ($dbg)
 Sets the database driver's debugging state. More...
 
 __destruct ()
 
 quote_interval ($txt)
 
 optimize_table ($table)
 
 concat ($fld, $sep)
 
 escapebin ($str)
 
 unescapebin ($str)
 

Public Attributes

const INSTALL_SCRIPT ='install/schema_postgres.sql'
 
const NULL_DATE = '0001-01-01 00:00:00'
 
const UTC_NOW = "now() at time zone 'UTC'"
 
- Public Attributes inherited from dba_driver
const INSTALL_SCRIPT ='install/schema_mysql.sql'
 
const NULL_DATE = '0000-00-00 00:00:00'
 
const UTC_NOW = 'UTC_TIMESTAMP()'
 
 $connected = false
 
 $error = false
 

Additional Inherited Members

- Protected Attributes inherited from dba_driver
 $debug = 0
 
 $db
 

Member Function Documentation

dba_postgres::close ( )
dba_postgres::concat (   $fld,
  $sep 
)
dba_postgres::connect (   $server,
  $port,
  $user,
  $pass,
  $db 
)
dba_postgres::escape (   $str)
dba_postgres::escape_identifier (   $str)
dba_postgres::escapebin (   $str)
dba_postgres::getdriver ( )
dba_postgres::optimize_table (   $table)
dba_postgres::q (   $sql)

Referenced by connect().

dba_postgres::quote_interval (   $txt)
dba_postgres::unescapebin (   $str)

Member Data Documentation

const dba_postgres::INSTALL_SCRIPT ='install/schema_postgres.sql'
const dba_postgres::NULL_DATE = '0001-01-01 00:00:00'
const dba_postgres::UTC_NOW = "now() at time zone 'UTC'"

The documentation for this class was generated from the following file: