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

No description

Parameters

Connection $connection

at line 56
string translate(array $args)

Generates SQL. Can be called only once.

Parameters

array $args

Return Value

string

Exceptions

Exception

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

Apply modifier to single value.

Parameters

mixed $value
string|null $modifier

Return Value

string

at line 651
string delimite(string $value)

internal  
 

Apply substitutions to identifier and delimites it.

Parameters

string $value

Return Value

string

Traits

Better OOP experience.