PHP Класс 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);
См. также: https://github.com/phalcon/cphalcon/blob/1.2.6/ext/db/adapter/pdo/oracle.c
Наследование: extends Phalcon\Db\Adapter\Pdo, implements Phalcon\Events\EventsAwareInterface, implements Phalcon\Db\AdapterInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_dialectType
$_type @codingStandardsIgnoreStart

Открытые методы

Метод Описание
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;

Описание методов

connect() публичный метод

Call it when you need to restore a database connection.
public connect ( array $descriptor = null ) : boolean
$descriptor array
Результат boolean

describeColumns() публичный метод

var_dump($connection->describeColumns('posts'));
public describeColumns ( string $table, string $schema = null ) : Phalcon\Db\ColumnInterface[]
$table string
$schema string
Результат Phalcon\Db\ColumnInterface[]

getDefaultIdValue() публичный метод

Return the default identity value to insert in an identity column.
public getDefaultIdValue ( ) : Phalcon\Db\RawValue
Результат Phalcon\Db\RawValue

lastInsertId() публичный метод

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
Результат integer

supportSequences() публичный метод

Check whether the database system requires a sequence to produce auto-numeric values.
public supportSequences ( ) : boolean
Результат boolean

useExplicitIdValue() публичный метод

Check whether the database system requires an explicit value for identity columns;
public useExplicitIdValue ( ) : boolean
Результат boolean

Описание свойств

$_dialectType защищенное свойство

protected $_dialectType

$_type защищенное свойство

@codingStandardsIgnoreStart
protected $_type