Db\Adapter::createView

public createView (mixed $viewName, array $definition, [mixed $schemaName]) Creates a view

Db\Adapter::createTable

public createTable (mixed $tableName, mixed $schemaName, array $definition) Creates a table

Db\Adapter::createSavepoint

public createSavepoint (mixed $name) Creates a new savepoint

Db\Adapter::addPrimaryKey

public addPrimaryKey (mixed $tableName, mixed $schemaName, Phalcon\Db\IndexInterface $index) Adds a primary key to a table

Db\Adapter::addIndex

public addIndex (mixed $tableName, mixed $schemaName, Phalcon\Db\IndexInterface $index) Adds an index to a table

Db\Adapter::addForeignKey

public addForeignKey (mixed $tableName, mixed $schemaName, Phalcon\Db\ReferenceInterface $reference) Adds a foreign key to a table

Db\Adapter::addColumn

public addColumn (mixed $tableName, mixed $schemaName, Phalcon\Db\ColumnInterface $column) Adds a column to a table

Db\Adapter

implements Phalcon\Events\EventsAwareInterface Source on GitHub Base class for Phalcon\Db adapters Methods public getDialectType () Name of the dialect used public getType () Type of database system the adapter is used for public getSqlVariables () Active SQL bound parameter variables public __construct (array $descriptor) Phalcon\Db\Adapter constructor public setEventsManager (Phalcon\Events\ManagerInterface $eventsManager) Sets the event manager public getEventsManager () Returns the internal

Db::setup

public static setup (array $options) Enables/disables options in the Database component

Db::FETCH_UNIQUE

integer FETCH_UNIQUE