interface QueryInterface (View source)

Methods

static string
tokenize(string $key)

Tokenizes the given string: since the SQL statements are managed with some tokens you need to decide how to distinguish a common word from a token.

static string
untokenize(string $token)

Untokenizes a token: converts a token to a plain string.

Details

static string tokenize(string $key)

Tokenizes the given string: since the SQL statements are managed with some tokens you need to decide how to distinguish a common word from a token.

In SELECT ALL FROM ~table the ~-prefixed string is a token, for example, and the tokenizer should generate an ~-prefixed token from the given $key. Doctrine\OrientDB uses double-colon by default.

Parameters

string $key

Return Value

string

static string untokenize(string $token)

Untokenizes a token: converts a token to a plain string.

Parameters

string $token

Return Value

string