ConnectionInterface::selectOne()

mixed selectOne(string $query, array $bindings = array()) Run a select statement and return a single result. Parameters string $query array $bindings Return Value mixed

ConnectionInterface::pretend()

array pretend(Closure $callback) Execute the given callback in "dry run" mode. Parameters Closure $callback Return Value array

ConnectionInterface::raw()

Expression raw(mixed $value) Get a new raw query expression. Parameters mixed $value Return Value Expression

ConnectionInterface::rollBack()

void rollBack() Rollback the active database transaction. Return Value void

ConnectionInterface::prepareBindings()

array prepareBindings(array $bindings) Prepare the query bindings for execution. Parameters array $bindings Return Value array

ConnectionInterface::insert()

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

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

ConnectionInterface::affectingStatement()

int affectingStatement(string $query, array $bindings = array()) Run an SQL statement and get the number of rows affected. Parameters string $query array $bindings Return Value int

ConnectionInterface::beginTransaction()

void beginTransaction() Start a new database transaction. Return Value void

ConnectionInterface::commit()

void commit() Commit the active database transaction. Return Value void