final class Translator

SQL translator.

Methods

__construct(Connection $connection)

No description

string
translate(array $args)

Generates SQL. Can be called only once.

string
formatValue(mixed $value, string|null $modifier)

Apply modifier to single value.

string
delimite(string $value)

Apply substitutions to identifier and delimites it.

Details

at line 33
__construct(Connection $connection)

No description

Parameters

Connection $connection

at line 45
string translate(array $args)

Generates SQL. Can be called only once.

Parameters

array $args

Return Value

string

Exceptions

Exception

at line 155
string formatValue(mixed $value, string|null $modifier)

Apply modifier to single value.

Parameters

mixed $value
string|null $modifier

Return Value

string

at line 648
string delimite(string $value)

internal  
 

Apply substitutions to identifier and delimites it.

Parameters

string $value

Return Value

string