Class: DB_oci8
Source Location: /DB-1.6.2/DB/oci8.php
  
PEAR
   |
   --DB_common
      |
      --DB_oci8 
Database independent query interface definition for PHP's Oracle 8  call-interface extension. 
  
Author(s):
        
    
Version:
  - $Id: oci8.php,v 1.64 2004/03/25 17:12:03 danielc Exp $
 
 
 | 
 | 
 | 
  
 
Inherited Variables
 | 
Inherited Methods
 | 
  
 
Class Details
  
 
 
Class Variables
 
 
Method Detail
	
	DB_oci8 (Constructor)   [line 68]
	
     
	
	affectedRows   [line 565]
	
    
	
		Gets the number of rows affected by the last query. if the last query was a select, returns 0. 
Overrides  DB_common::affectedRows() (Returns the affected rows of a query)
         
   
     
	
	autoCommit   [line 516]
	
    
    
		void autoCommit(
[$onoff
$onoff = false])
     |   
     |  
 
	
		Enable/disable automatic commits 
Overrides  DB_common::autoCommit() (enable automatic Commit)
         Parameters:
    
        
   
     
	
	commit   [line 530]
	
     
	
	connect   [line 109]
	
    
    
		int connect(
$dsn
$dsninfo, [$persistent
$persistent = false])
     |   
     |  
 
	
		Connect to a database and log in as the specified user. 
        Parameters:
    
        
   
     
	
	createSequence   [line 703]
	
    
    
		int createSequence(
string
$seq_name)
     |   
     |  
 
	
		Creates a new sequence 
Overrides  DB_common::createSequence() (Creates a new sequence)
         Parameters:
    
        
   
     
	
	disconnect   [line 146]
	
    
	
		Log out and disconnect from the database. 
        
   
     
	
	dropSequence   [line 723]
	
     
	
	errorNative   [line 349]
	
    
	
		Get the native error code of the last error (if any) that occured  on the current connection.  This does not work, as OCIError does  not work unless given a statement.  If OCIError does return  something, so will this. 
Overrides  DB_common::errorNative() (Returns an errormessage, provides by the database)
         
   
     
	
	execute   [line 449]
	
    
    
		int &execute(
resource
$stmt, [mixed
$data = array()])
     |   
     |  
 
	
		Executes a DB statement prepared with prepare(). 
Overrides  DB_common::execute() (Executes a DB statement prepared with prepare())
         Parameters:
    
        
   
     
	
	freePrepared   [line 276]
	
    
    
		bool freePrepared(
$stmt
$stmt)
     |   
     |  
 
	
		Free the internal resources associated with a prepared query. 
Overrides  DB_common::freePrepared() (Free the resource used in a prepared query)
         Parameters:
    
        
   
     
	
	freeResult   [line 264]
	
    
    
		bool freeResult(
$result
$result)
     |   
     |  
 
	
		Free the internal resources associated with $result. 
        Parameters:
    
        
   
     
	
	getSpecialQuery   [line 764]
	
    
    
		string getSpecialQuery(
string
$type)
     |   
     |  
 
	
		Returns the query needed to get some backend info 
Overrides  DB_common::getSpecialQuery() (Returns the query needed to get some backend info)
         Parameters:
    
        
   
     
	
	modifyLimitQuery   [line 603]
	
    
    
		string modifyLimitQuery(
string
$query, int
$from, int
$count, [
$params = array()])
     |   
     |  
 
	
		Emulate the row limit support altering the query 
        Parameters:
    
        
   
     
	
	modifyQuery   [line 580]
	
    
    
		void modifyQuery(
$query)
     |   
     |   
	
		
        Parameters:
    
        
   
     
	
	nextId   [line 665]
	
    
    
		int nextId(
string
$seq_name, [boolean
$ondemand = true])
     |   
     |  
 
	
		Returns the next free id in a sequence 
Overrides  DB_common::nextId() (Returns the next free id in a sequence)
         Parameters:
    
        
   
     
	
	nextResult   [line 201]
	
    
    
		true nextResult(
a
$result)
     |   
     |  
 
	
		Move the internal oracle result pointer to the next available result 
        Parameters:
    
        
   
     
	
	numCols   [line 329]
	
    
    
		int numCols(
$result
$result)
     |   
     |  
 
	
		Get the number of columns in a result set. 
        Parameters:
    
        
   
     
	
	numRows   [line 290]
	
     
	
	oci8RaiseError   [line 742]
	
    
    
		object DB oci8RaiseError(
[integer
$errno = null])
     |   
     |  
 
	
		Gather information about an error, then use that info to create a  DB error object and finally return that object. 
        Parameters:
    
        
   
     
	
	prepare   [line 389]
	
    
    
		mixed prepare(
string
$query)
     |   
     |  
 
	
		Prepares a query for multiple execution with execute(). With oci8, this is emulated. prepare() requires a generic query as string like     INSERT INTO numbers VALUES (?, ?, ?)  
 
 .  The ? characters are placeholders. Three types of placeholders can be used:  - ?  a quoted scalar value, i.e. strings, integers
 - !  value is inserted 'as is'
 - &  requires a file name.  The file's contents get
                     inserted into the query (i.e. saving binary
                     data in a db)
 
   Use backslashes to escape placeholder characters if you don't want  them to be interpreted as placeholders.  Example:      "UPDATE foo SET col=? WHERE col='over \& under'"  
 
 
Overrides  DB_common::prepare() (Prepares a query for multiple execution with execute())
         Parameters:
    
        
   
     
	
	rollback   [line 547]
	
    
	
		Roll back all uncommitted transactions on the current connection. 
Overrides  DB_common::rollback() (starts a rollback)
         
   
     
	
	simpleQuery   [line 166]
	
    
    
		int simpleQuery(
$query
$query)
     |   
     |  
 
	
		Send a query to oracle and return the results as an oci8 resource  identifier. 
        Parameters:
    
        
   
     
	
	tableInfo   [line 794]
	
    
    
		array tableInfo(
object|string
$result, [int
$mode = null])
     |   
     |  
 
	
		Returns information about a table or a result set. NOTE: only supports 'table' and 'flags' if $result  is a table name. NOTE: flags won't contain index information. 
Overrides  DB_common::tableInfo() (Returns information about a table or a result set)
         Parameters:
    
        
   
     
 
        
		    
 
		    Documentation generated on Mon, 11 Mar 2019 10:14:54 -0400 by  phpDocumentor 1.4.4. PEAR Logo Copyright ©  PHP Group 2004.
	        
       |   
     |