PHP Class Phalcon\Db\Adapter\Pdo\Oracle

Specific functions for the Oracle database system $config = array( "dbname" => "//localhost/dbname", "username" => "oracle", "password" => "oracle" ); $connection = new Phalcon\Db\Adapter\Pdo\Oracle($config);
See also: https://github.com/phalcon/cphalcon/blob/1.2.6/ext/db/adapter/pdo/oracle.c
Inheritance: extends Phalcon\Db\Adapter\Pdo, implements Phalcon\Events\EventsAwareInterface, implements Phalcon\Db\AdapterInterface
Datei anzeigen Open project: phalcon/incubator

Protected Properties

Property Type Description
$_dialectType
$_type @codingStandardsIgnoreStart

Public Methods

Method Description
connect ( array $descriptor = null ) : boolean This method is automatically called in \Phalcon\Db\Adapter\Pdo constructor.
describeColumns ( string $table, string $schema = null ) : Phalcon\Db\ColumnInterface[] Returns an array of \Phalcon\Db\Column objects describing a table.
getDefaultIdValue ( ) : Phalcon\Db\RawValue Return the default identity value to insert in an identity column.
lastInsertId ( string $sequenceName = null ) : integer Returns the insert id for the auto_increment/serial column inserted in the latest executed SQL statement.
supportSequences ( ) : boolean Check whether the database system requires a sequence to produce auto-numeric values.
useExplicitIdValue ( ) : boolean Check whether the database system requires an explicit value for identity columns;

Method Details

connect() public method

Call it when you need to restore a database connection.
public connect ( array $descriptor = null ) : boolean
$descriptor array
return boolean

describeColumns() public method

var_dump($connection->describeColumns('posts'));
public describeColumns ( string $table, string $schema = null ) : Phalcon\Db\ColumnInterface[]
$table string
$schema string
return Phalcon\Db\ColumnInterface[]

getDefaultIdValue() public method

Return the default identity value to insert in an identity column.
public getDefaultIdValue ( ) : Phalcon\Db\RawValue
return Phalcon\Db\RawValue

lastInsertId() public method

Inserting a new robot $success = $connection->insert( 'robots', ['Astro Boy', 1952], ['name', 'year'], ); Getting the generated id $id = $connection->lastInsertId();
public lastInsertId ( string $sequenceName = null ) : integer
$sequenceName string
return integer

supportSequences() public method

Check whether the database system requires a sequence to produce auto-numeric values.
public supportSequences ( ) : boolean
return boolean

useExplicitIdValue() public method

Check whether the database system requires an explicit value for identity columns;
public useExplicitIdValue ( ) : boolean
return boolean

Property Details

$_dialectType protected_oe property

protected $_dialectType

$_type protected_oe property

@codingStandardsIgnoreStart
protected $_type