int setFetchMode(int $fetchMode) Set the default fetch mode for the connection. Parameters int $fetchMode Return Value int
void setEventDispatcher(Dispatcher $events) Set the event dispatcher instance on the connection. Parameters Dispatcher $events Return Value void
void setPostProcessor(Processor $processor) Set the query post processor used by the connection. Parameters Processor $processor Return Value void
$this setPdo(PDO|null $pdo) Set the PDO connection. Parameters PDO|null $pdo Return Value $this Exceptions RuntimeException
mixed selectOne(string $query, array $bindings = array()) Run a select statement and return a single result. Parameters string $query array $bindings Return Value mixed
string setDatabaseName(string $database) Set the name of the connected database. Parameters string $database Return Value string
array select(string $query, array $bindings = array(), bool $useReadPdo = true) Run a select statement against the database. Parameters string $query array $bindings bool $useReadPdo Return Value array
array selectFromWriteConnection(string $query, array $bindings = array()) Run a select statement against the database. Parameters string $query array $bindings Return Value array
void rollBack() Rollback the active database transaction. Return Value void
void reconnect() Reconnect to the database. Return Value void Exceptions LogicException
Page 147 of 996