Support token types in QueryBuilder.literal()

Description

It should be possible to use a token as a literal:

Currently this throws an exception. We need to add a special case for token types in literal, because they don't have codecs in the registry.
The logic to convert a token to a raw CQL string is:


Note that a workaround (and better way to do this really) is to use a bind marker:

Environment

None

Pull Requests

None

Assignee

Unassigned

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Minor
Configure