PHP Interface Doctrine\OrientDB\Query\Formatter\QueryInterface

Datei anzeigen Open project: doctrine/orientdb-odm

Public Methods

Method Description
tokenize ( string $key ) : string 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.
untokenize ( string $token ) : string Untokenizes a token: converts a token to a plain string.

Method Details

tokenize() public static method

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.
public static tokenize ( string $key ) : string
$key string
return string

untokenize() public static method

Untokenizes a token: converts a token to a plain string.
public static untokenize ( string $token ) : string
$token string
return string