ConnectionResolver::addConnection()

void addConnection(string $name, ConnectionInterface $connection) Add a connection to the resolver. Parameters string $name ConnectionInterface $connection Return Value void

ConnectionResolver::connection()

ConnectionInterface connection(string $name = null) Get a database connection instance. Parameters string $name Return Value ConnectionInterface

ConnectionInterface::unprepared()

bool unprepared(string $query) Run a raw, unprepared query against the PDO connection. Parameters string $query Return Value bool

ConnectionResolver

ConnectionResolver class ConnectionResolver implements ConnectionResolverInterface (View source) Methods void __construct(array $connections = array()) Create a new connection resolver instance. ConnectionInterface connection(string $name = null) Get a database connection instance. void addConnection(string $name, ConnectionInterface $connection) Add a connection to the resolver. bool hasConnection(string $name) Check if a connection has been registered. string getDefa

ConnectionInterface::transaction()

mixed transaction(Closure $callback, int $attempts = 1) Execute a Closure within a transaction. Parameters Closure $callback int $attempts Return Value mixed Exceptions Throwable

ConnectionInterface::transactionLevel()

int transactionLevel() Get the number of active transactions. Return Value int

ConnectionInterface::update()

int update(string $query, array $bindings = array()) Run an update statement against the database. Parameters string $query array $bindings Return Value int

ConnectionInterface::table()

Builder table(string $table) Begin a fluent query against a database table. Parameters string $table Return Value Builder

ConnectionInterface::statement()

bool statement(string $query, array $bindings = array()) Execute an SQL statement and return the boolean result. Parameters string $query array $bindings Return Value bool

ConnectionInterface::select()

array select(string $query, array $bindings = array()) Run a select statement against the database. Parameters string $query array $bindings Return Value array