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 54
__construct(Connection $connection)

No description

Parameters

Connection $connection

at line 66
string translate(array $args)

Generates SQL. Can be called only once.

Parameters

array $args

Return Value

string

Exceptions

Exception

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

Apply modifier to single value.

Parameters

mixed $value
string|null $modifier

Return Value

string

at line 643
string delimite(string $value)

internal  
 

Apply substitutions to identifier and delimites it.

Parameters

string $value

Return Value

string

Traits

Better OOP experience.