MySqlGrammar
Extends
Properties
$operators string[]
The grammar specific operators.
Methods
whereNull ( Builder $query , $where ) : string
Add a "where null" clause to the query.
Parameters
- $query Builder
- $where array
whereNotNull ( Builder $query , $where ) : string
Add a "where not null" clause to the query.
Parameters
- $query Builder
- $where array
whereFullText ( Builder $query , $where ) : string
Compile a "where fulltext" clause.
Parameters
- $query Builder
- $where array
compileInsertOrIgnore ( Builder $query , array $values ) : string
Compile an insert ignore statement into SQL.
Parameters
- $query Builder
- $values array
compileJsonContains ( $column , $value ) : string
Compile a "JSON contains" statement into SQL.
Parameters
- $column string
- $value string
compileJsonLength ( $column , $operator , $value ) : string
Compile a "JSON length" statement into SQL.
Parameters
- $column string
- $operator string
- $value string
compileRandom ( $seed ) : string
Compile the random statement into SQL.
Parameters
- $seed string
compileLock ( Builder $query , $value ) : string
Compile the lock into SQL.
Parameters
- $query Builder
- $value bool|string
compileInsert ( Builder $query , array $values ) : string
Compile an insert 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
compileJsonUpdateColumn ( $key , $value ) : string
Prepare a JSON column being updated using the JSON_SET function.
Parameters
- $key string
- $value mixed
compileUpdateWithoutJoins ( Builder $query , $table , $columns , $where ) : string
Compile an update statement without joins into SQL.
Parameters
- $query Builder
- $table string
- $columns string
- $where string
prepareBindingsForUpdate ( array $bindings , array $values ) : array
Prepare the bindings for an update statement.
Parameters
- $bindings array
- $values array
compileDeleteWithoutJoins ( Builder $query , $table , $where ) : string
Compile a delete query that does not use joins.
Parameters
- $query Builder
- $table string
- $where string
wrapValue ( $value ) : string
Wrap a single string in keyword identifiers.
Parameters
- $value string
wrapJsonSelector ( $value ) : string
Wrap the given JSON selector.
Parameters
- $value string
wrapJsonBooleanSelector ( $value ) : string
Wrap the given JSON selector for boolean values.
Parameters
- $value string