MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

Class: MDB2_Driver_pgsql

Source Location: /MDB2_Driver_pgsql-0.1.0/MDB2/Driver/pgsql.php

Class Overview

MDB2_Driver_Common
   |
   --MDB2_Driver_pgsql

MDB2 PostGreSQL driver


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 55]
MDB2 PostGreSQL driver


[ Top ]


Class Variables

$escape_quotes =  "\\"

[line 58]


Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 66]

MDB2_Driver_pgsql __construct( )

Constructor

[ Top ]

beginTransaction   [line 173]

mixed beginTransaction( )

Start a transaction.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

[ Top ]

commit   [line 201]

mixed commit( )

Commit the database changes done during a transaction that is in progress.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

[ Top ]

connect   [line 332]

true connect( )

Connect to the database
  • Return: on success, MDB2 Error Object on failure
  • Access: public

[ Top ]

currID   [line 540]

mixed currID( string $seq_name)

returns the current id of a sequence
  • Return: MDB2 Error Object or id
  • Access: public

Parameters:

string   $seq_name   —  name of the sequence

[ Top ]

disconnect   [line 373]

mixed disconnect( [ $force = true])

Log out and disconnect from the database.
  • Return: true on success, false if not connected and error object on error
  • Access: public

Parameters:

   $force   — 

[ Top ]

errorInfo   [line 97]

array errorInfo( [integer $error = null])

This method is used to collect information about an error
  • Access: public

Parameters:

integer   $error   — 

[ Top ]

nextID   [line 509]

mixed nextID( string $seq_name, [boolean $ondemand = true])

returns the next free id of a sequence
  • Return: MDB2 Error Object or id
  • Access: public

Parameters:

string   $seq_name   —  name of the sequence
boolean   $ondemand   —  when true the seqence is automatic created, if it not exists

[ Top ]

rollback   [line 226]

mixed rollback( )

Cancel any database changes done during a transaction that is in progress.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

[ Top ]

standaloneQuery   [line 396]

mixed &standaloneQuery( string $query, [mixed $types = null])

execute a query as DBA
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

Parameters:

string   $query   —  the SQL query
mixed   $types   —  array that contains the types of the columns in the result set

[ Top ]

_doConnect   [line 250]

mixed _doConnect( $database_name, [ $persistent = false])

Does the grunt work of connecting to the database
  • Return: connection resource on success, MDB2 Error Object on failure
  • Access: protected

Parameters:

   $database_name   — 
   $persistent   — 

[ Top ]

_doQuery   [line 435]

result _doQuery( string $query, [boolean $isManip = false], [resource $connection = null], [string $database_name = null])

Execute a query
  • Return: or error object
  • Access: protected

Parameters:

string   $query   —  query
boolean   $isManip   —  if the query is a manipulation query
resource   $connection   — 
string   $database_name   — 

[ Top ]

_modifyQuery   [line 475]

the _modifyQuery( string $query, $isManip, $limit, $offset)

Changes a query string for various DBMS specific reasons
  • Return: new (modified) query
  • Access: protected

Parameters:

string   $query   —  query to modify
   $isManip   — 
   $limit   — 
   $offset   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:19:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.