Connection::select()

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

Connection::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

Connection::raw()

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

Connection::reconnect()

void reconnect() Reconnect to the database. Return Value void Exceptions LogicException

Connection::query()

Builder query() Get a new query builder instance. Return Value Builder

Connection::pretending()

bool pretending() Determine if the connection in a "dry run". Return Value bool

Connection::listen()

void listen(Closure $callback) Register a database query listener with the connection. Parameters Closure $callback Return Value void

Connection::prepareBindings()

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

Connection::logQuery()

void logQuery(string $query, array $bindings, float|null $time = null) Log a query in the connection's query log. Parameters string $query array $bindings float|null $time Return Value void

Connection::pretend()

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