The Hubzilla
 All Classes Namespaces Files Functions Variables Pages
dba_postgres Class Reference
Inheritance diagram for dba_postgres:
[legend]

Public Member Functions

 connect ($server, $scheme, $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, $scheme, $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, $scheme, $port, $user, $pass, $db, $install=false)
 
 get_null_date ()
 
 get_install_script ()
 
 get_table_quote ()
 
 utcnow ()
 
 install ($server, $scheme, $port, $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)
 
 pdo_set ($x)
 
 pdo_get ()
 

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'"
 
const TQUOT = '"'
 
- Public Attributes inherited from dba_driver
 $db
 
 $debug = 0
 
 $connected = false
 
 $error = false
 

Additional Inherited Members

- Protected Attributes inherited from dba_driver
 $pdo = array()
 

Member Function Documentation

dba_postgres::close ( )
dba_postgres::concat (   $fld,
  $sep 
)
dba_postgres::connect (   $server,
  $scheme,
  $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::TQUOT = '"'
const dba_postgres::UTC_NOW = "now() at time zone 'UTC'"

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