Grammar
Uses
Properties
$tablePrefix string
The grammar table prefix.
Methods
wrapArray ( array $values ) : array
Wrap an array of values.
Parameters
- $values array
wrapTable ( $table ) : string
Wrap a table in keyword identifiers.
Parameters
- $table Expression |string
wrap ( $value , $prefixAlias ) : string
Wrap a value in keyword identifiers.
Parameters
- $value Expression |string
- $prefixAlias bool
wrapAliasedValue ( $value , $prefixAlias ) : string
Wrap a value that has an alias.
Parameters
- $value string
- $prefixAlias bool
wrapSegments ( $segments ) : string
Wrap the given value segments.
Parameters
- $segments array
wrapValue ( $value ) : string
Wrap a single string in keyword identifiers.
Parameters
- $value string
wrapJsonSelector ( $value ) : string
Wrap the given JSON selector.
Parameters
- $value string
isJsonSelector ( $value ) : bool
Determine if the given string is a JSON selector.
Parameters
- $value string
columnize ( array $columns ) : string
Convert an array of column names into a delimited string.
Parameters
- $columns array
parameterize ( array $values ) : string
Create query parameter place-holders for an array.
Parameters
- $values array
parameter ( $value ) : string
Get the appropriate query parameter place-holder for a value.
Parameters
- $value mixed
quoteString ( $value ) : string
Quote the given string literal.
Parameters
- $value string|array
escape ( $value , $binary ) : string
Escapes a value for safe SQL embedding.
Parameters
- $value string|float|int|bool|null
- $binary bool
isExpression ( $value ) : bool
Determine if the given value is a raw expression.
Parameters
- $value mixed
getValue ( $expression ) : string|int|float
Transforms expressions to their scalar types.
Parameters
- $expression Expression |string|int|float
getDateFormat ( ) : string
Get the format for database stored dates.
getTablePrefix ( ) : string
Get the grammar's table prefix.
setTablePrefix ( $prefix ) : $this
Set the grammar's table prefix.
Parameters
- $prefix string
setConnection ( $connection ) : $this
Set the grammar's database connection.
Parameters
- $prefix Connection