SqlServerGrammar
Extends
Properties
$operators string[]
All of the available clause operators.
$selectComponents string[]
The components that make up a select clause.
Methods
compileSelect ( Builder $query ) : string
Compile a select query into SQL.
Parameters
- $query Builder
compileColumns ( Builder $query , $columns ) : string|null
Compile the "select *" portion of the query.
Parameters
- $query Builder
- $columns array
compileFrom ( Builder $query , $table ) : string
Compile the "from" portion of the query.
Parameters
- $query Builder
- $table string
compileIndexHint ( Builder $query , $indexHint ) : string
Compile the index hints for the query.
Parameters
whereBitwise ( Builder $query , $where ) : string
{@inheritdoc}
Parameters
- $query Builder
- $where array
whereDate ( Builder $query , $where ) : string
Compile a "where date" clause.
Parameters
- $query Builder
- $where array
whereTime ( Builder $query , $where ) : string
Compile a "where time" clause.
Parameters
- $query Builder
- $where array
compileJsonContains ( $column , $value ) : string
Compile a "JSON contains" statement into SQL.
Parameters
- $column string
- $value string
prepareBindingForJsonContains ( $binding ) : string
Prepare the binding for a "JSON contains" statement.
Parameters
- $binding mixed
compileJsonContainsKey ( $column ) : string
Compile a "JSON contains key" statement into SQL.
Parameters
- $column string
compileJsonLength ( $column , $operator , $value ) : string
Compile a "JSON length" statement into SQL.
Parameters
- $column string
- $operator string
- $value string
compileJsonValueCast ( $value ) : string
Compile a "JSON value cast" statement into SQL.
Parameters
- $value string
compileHaving ( array $having ) : string
Compile a single having clause.
Parameters
- $having array
compileHavingBitwise ( $having ) : string
Compile a having clause involving a bitwise operator.
Parameters
- $having array
compileDeleteWithoutJoins ( Builder $query , $table , $where ) : string
Compile a delete statement without joins into SQL.
Parameters
- $query Builder
- $table string
- $where string
compileRandom ( $seed ) : string
Compile the random statement into SQL.
Parameters
- $seed string|int
compileLimit ( Builder $query , $limit ) : string
Compile the "limit" portions of the query.
Parameters
- $query Builder
- $limit int
compileOffset ( Builder $query , $offset ) : string
Compile the "offset" portions of the query.
Parameters
- $query Builder
- $offset int
compileLock ( Builder $query , $value ) : string
Compile the lock into SQL.
Parameters
- $query Builder
- $value bool|string
wrapUnion ( $sql ) : string
Wrap a union subquery in parentheses.
Parameters
- $sql string
compileExists ( Builder $query ) : string
Compile an exists statement into SQL.
Parameters
- $query Builder
compileUpdateWithJoins ( Builder $query , $table , $columns , $where ) : string
Compile an update statement with joins into SQL.
Parameters
- $query Builder
- $table string
- $columns string
- $where string
compileUpsert ( Builder $query , array $values , array $uniqueBy , array $update ) : string
Compile an "upsert" statement into SQL.
Parameters
- $query Builder
- $values array
- $uniqueBy array
- $update array
prepareBindingsForUpdate ( array $bindings , array $values ) : array
Prepare the bindings for an update statement.
Parameters
- $bindings array
- $values array
compileSavepoint ( $name ) : string
Compile the SQL statement to define a savepoint.
Parameters
- $name string
compileSavepointRollBack ( $name ) : string
Compile the SQL statement to execute a savepoint rollback.
Parameters
- $name string
getDateFormat ( ) : string
Get the format for database stored dates.
wrapValue ( $value ) : string
Wrap a single string in keyword identifiers.
Parameters
- $value string
wrapJsonSelector ( $value ) : string
Wrap the given JSON selector.
Parameters
- $value string
wrapJsonBooleanValue ( $value ) : string
Wrap the given JSON boolean value.
Parameters
- $value string
wrapTable ( $table ) : string
Wrap a table in keyword identifiers.
Parameters
- $table Expression |string
wrapTableValuedFunction ( $table ) : string
Wrap a table in keyword identifiers.
Parameters
- $table string