Méthode |
Description |
|
__construct ( ) |
[__construct description] |
|
affectingStatement ( string $query, array $bindings = [] ) : integer |
Run an SQL statement and get the number of rows affected. |
|
beginTransaction ( ) : void |
Start a new database transaction. |
|
bind_and_run ( string $query, array $bindings = [] ) : array |
Bind and run the query |
|
commit ( ) : void |
Commit the active database transaction. |
|
delete ( string $query, array $bindings = [] ) : integer |
Run a delete statement against the database. |
|
getPdo ( ) : Database |
Return self as PDO |
|
getPostProcessor ( ) |
|
|
getQueryGrammar ( ) |
|
|
insert ( string $query, array $bindings = [] ) : boolean |
Run an insert statement against the database. |
|
instance ( ) : Database |
Initializes the Database class |
|
lastInsertId ( string $args ) : integer |
Return the last insert id |
|
prepareBindings ( array $bindings ) : array |
Prepare the query bindings for execution. |
|
pretend ( Closure $callback ) : array |
Execute the given callback in "dry run" mode. |
|
raw ( mixed $value ) : Illuminate\Database\Query\Expression |
Get a new raw query expression. |
|
rollBack ( ) : void |
Rollback the active database transaction. |
|
select ( string $query, array $bindings = [] ) : array |
Run a select statement against the database. |
|
selectOne ( string $query, array $bindings = [] ) : mixed |
Run a select statement and return a single result. |
|
statement ( string $query, array $bindings = [] ) : boolean |
Execute an SQL statement and return the boolean result. |
|
table ( string $table ) : Builder |
Begin a fluent query against a database table. |
|
transaction ( Closure $callback ) : mixed |
Execute a Closure within a transaction. |
|
transactionLevel ( ) : integer |
Get the number of active transactions. |
|
unprepared ( string $query ) : boolean |
Run a raw, unprepared query against the PDO connection. |
|
update ( string $query, array $bindings = [] ) : integer |
Run an update statement against the database. |
|