class Illuminate / Database / Query / Grammars / SqlServerGrammar

SqlServerGrammar

Extends

Properties

protected

$operators string[]

All of the available clause operators.

Default: array
protected

$selectComponents string[]

The components that make up a select clause.

Default: array

Methods

public

compileSelect ( Builder $query ) : string

Compile a select query into SQL.

Parameters

protected

compileColumns ( Builder $query , $columns ) : string|null

Compile the "select *" portion of the query.

Parameters

protected

compileFrom ( Builder $query , $table ) : string

Compile the "from" portion of the query.

Parameters

protected

compileIndexHint ( Builder $query , $indexHint ) : string

Compile the index hints for the query.

Parameters

protected

whereBitwise ( Builder $query , $where ) : string

{@inheritdoc}

Parameters

protected

whereDate ( Builder $query , $where ) : string

Compile a "where date" clause.

Parameters

protected

whereTime ( Builder $query , $where ) : string

Compile a "where time" clause.

Parameters

protected

compileJsonContains ( $column , $value ) : string

Compile a "JSON contains" statement into SQL.

Parameters

  • $column string
  • $value string
public

prepareBindingForJsonContains ( $binding ) : string

Prepare the binding for a "JSON contains" statement.

Parameters

  • $binding mixed
protected

compileJsonContainsKey ( $column ) : string

Compile a "JSON contains key" statement into SQL.

Parameters

  • $column string
protected

compileJsonLength ( $column , $operator , $value ) : string

Compile a "JSON length" statement into SQL.

Parameters

  • $column string
  • $operator string
  • $value string
public

compileJsonValueCast ( $value ) : string

Compile a "JSON value cast" statement into SQL.

Parameters

  • $value string
protected

compileHaving ( array $having ) : string

Compile a single having clause.

Parameters

  • $having array
protected

compileHavingBitwise ( $having ) : string

Compile a having clause involving a bitwise operator.

Parameters

  • $having array
protected

compileDeleteWithoutJoins ( Builder $query , $table , $where ) : string

Compile a delete statement without joins into SQL.

Parameters

  • $query Builder
  • $table string
  • $where string
public

compileRandom ( $seed ) : string

Compile the random statement into SQL.

Parameters

  • $seed string|int
protected

compileLimit ( Builder $query , $limit ) : string

Compile the "limit" portions of the query.

Parameters

protected

compileOffset ( Builder $query , $offset ) : string

Compile the "offset" portions of the query.

Parameters

protected

compileLock ( Builder $query , $value ) : string

Compile the lock into SQL.

Parameters

protected

wrapUnion ( $sql ) : string

Wrap a union subquery in parentheses.

Parameters

  • $sql string
public

compileExists ( Builder $query ) : string

Compile an exists statement into SQL.

Parameters

protected

compileUpdateWithJoins ( Builder $query , $table , $columns , $where ) : string

Compile an update statement with joins into SQL.

Parameters

  • $query Builder
  • $table string
  • $columns string
  • $where string
public

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
public

prepareBindingsForUpdate ( array $bindings , array $values ) : array

Prepare the bindings for an update statement.

Parameters

  • $bindings array
  • $values array
public

compileSavepoint ( $name ) : string

Compile the SQL statement to define a savepoint.

Parameters

  • $name string
public

compileSavepointRollBack ( $name ) : string

Compile the SQL statement to execute a savepoint rollback.

Parameters

  • $name string
public

getDateFormat ( ) : string

Get the format for database stored dates.

protected

wrapValue ( $value ) : string

Wrap a single string in keyword identifiers.

Parameters

  • $value string
protected

wrapJsonSelector ( $value ) : string

Wrap the given JSON selector.

Parameters

  • $value string
protected

wrapJsonBooleanValue ( $value ) : string

Wrap the given JSON boolean value.

Parameters

  • $value string
public

wrapTable ( $table ) : string

Wrap a table in keyword identifiers.

Parameters

protected

wrapTableValuedFunction ( $table ) : string

Wrap a table in keyword identifiers.

Parameters

  • $table string