ConnectionInterface

ConnectionInterface interface ConnectionInterface (View source) Methods Builder table(string $table) Begin a fluent query against a database table. Expression raw(mixed $value) Get a new raw query expression. mixed selectOne(string $query, array $bindings = array()) Run a select statement and return a single result. array select(string $query, array $bindings = array()) Run a select statement against the database. bool insert(string $query, array $bindings = array()) R

ConnectionFactory::__construct()

void __construct(Container $container) Create a new connection factory instance. Parameters Container $container Return Value void

ConnectionFactory::make()

Connection make(array $config, string $name = null) Establish a PDO connection based on the configuration. Parameters array $config string $name Return Value Connection

ConnectionFactory::createConnector()

ConnectorInterface createConnector(array $config) Create a connector instance based on the configuration. Parameters array $config Return Value ConnectorInterface Exceptions InvalidArgumentException

ConnectionFactory

ConnectionFactory class ConnectionFactory (View source) Methods void __construct(Container $container) Create a new connection factory instance. Connection make(array $config, string $name = null) Establish a PDO connection based on the configuration. ConnectorInterface createConnector(array $config) Create a connector instance based on the configuration.

ConnectionEvent::__construct()

void __construct(Connection $connection) Create a new event instance. Parameters Connection $connection Return Value void

ConnectionEvent

ConnectionEvent class ConnectionEvent (View source) Properties string $connectionName The name of the connection. Connection $connection The database connection instance.

Connection::__construct()

void __construct(PDO|Closure $pdo, string $database = '', string $tablePrefix = '', array $config = array()) Create a new database connection instance. Parameters PDO|Closure $pdo string $database string $tablePrefix array $config Return Value void

Connection::withTablePrefix()

Grammar withTablePrefix(Grammar $grammar) Set the table prefix and return the grammar. Parameters Grammar $grammar Return Value Grammar

Connection::useDefaultSchemaGrammar()

void useDefaultSchemaGrammar() Set the schema grammar to the default implementation. Return Value void