SQLiteGrammar
Extends
Properties
$operators string[]
All of the available clause operators.
Methods
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
whereDate ( Builder $query , $where ) : string
Compile a "where date" clause.
Parameters
- $query Builder
- $where array
whereDay ( Builder $query , $where ) : string
Compile a "where day" clause.
Parameters
- $query Builder
- $where array
whereMonth ( Builder $query , $where ) : string
Compile a "where month" clause.
Parameters
- $query Builder
- $where array
whereYear ( Builder $query , $where ) : string
Compile a "where year" clause.
Parameters
- $query Builder
- $where array
whereTime ( Builder $query , $where ) : string
Compile a "where time" clause.
Parameters
- $query Builder
- $where array
dateBasedWhere ( $type , Builder $query , $where ) : string
Compile a date based where clause.
Parameters
- $type string
- $query Builder
- $where array
compileJsonLength ( $column , $operator , $value ) : string
Compile a "JSON length" statement into SQL.
Parameters
- $column string
- $operator string
- $value string
compileUpdate ( Builder $query , array $values ) : string
Compile an update statement into SQL.
Parameters
- $query Builder
- $values array
compileInsertOrIgnore ( Builder $query , array $values ) : string
Compile an insert ignore statement into SQL.
Parameters
- $query Builder
- $values array
compileUpdateColumns ( Builder $query , array $values ) : string
Compile the columns for an update statement.
Parameters
- $query Builder
- $values array
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
groupJsonColumnsForUpdate ( array $values ) : array
Group the nested JSON columns.
Parameters
- $values array
compileJsonPatch ( $column , $value ) : string
Compile a "JSON" patch statement into SQL.
Parameters
- $column string
- $value mixed
compileUpdateWithJoinsOrLimit ( Builder $query , array $values ) : string
Compile an update statement with joins or limit into SQL.
Parameters
- $query Builder
- $values array
prepareBindingsForUpdate ( array $bindings , array $values ) : array
Prepare the bindings for an update statement.
Parameters
- $bindings array
- $values array
compileDelete ( Builder $query ) : string
Compile a delete statement into SQL.
Parameters
- $query Builder
compileDeleteWithJoinsOrLimit ( Builder $query ) : string
Compile a delete statement with joins or limit into SQL.
Parameters
- $query Builder
compileTruncate ( Builder $query ) : array
Compile a truncate table statement into SQL.
Parameters
- $query Builder
wrapJsonSelector ( $value ) : string
Wrap the given JSON selector.
Parameters
- $value string