class Translator

SQL translator.

Traits

Better OOP experience.

Methods

__construct(Connection $connection)

No description

string
translate(array $args)

Generates SQL. Can be called only once.

string
formatValue($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)

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 173
string formatValue($value, string|null $modifier)

Apply modifier to single value.

Parameters

$value
string|null $modifier

Return Value

string

at line 608
string delimite(string $value)

Apply substitutions to identifier and delimites it.

Parameters

string $value

Return Value

string