Db\Adapter::createTable

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

Db\Adapter::describeIndexes

public Phalcon\Db\Index[] describeIndexes (string $table, [string $schema]) Lists table indexes print_r($connection->describeIndexes('robots_parts'));

Db\Adapter::describeReferences

public describeReferences (mixed $table, [mixed $schema]) Lists table references print_r($connection->describeReferences('robots_parts'));

Db\Adapter::addPrimaryKey

public addPrimaryKey (mixed $tableName, mixed $schemaName, Phalcon\Db\IndexInterface $index) Adds a primary key 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\Adapter::addColumn

public addColumn (mixed $tableName, mixed $schemaName, Phalcon\Db\ColumnInterface $column) Adds a column 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::FETCH_LAZY

integer FETCH_LAZY

Db::FETCH_NAMED

integer FETCH_NAMED