-
Notifications
You must be signed in to change notification settings - Fork 134
Labels
enhancementNew feature or requestNew feature or request
Description
Use case
We often want to refer to qualified identifiers (e.g., table.column
). Right now, the Identifier
type only handles a single level of identifiers. As far as I know, Clickhouse only supports two levels of nesting (there are no schemas or other objects that would require quoting foo.bar.baz
); however, it is perfectly legal for an Identifier to include a .
character.
Describe the solution you'd like
A new type
pub struct ScopedIdentifier<'a, 'b>(pub &'a str, pub &'b str)
This should serialize as follows:
ScopedIdentifier('foo', 'bar') -> `foo`.`bar`
ScopedIdentifier('', 'bar') -> `bar`
ScopedIdentifier('foo', '') -> `foo`.``
Describe the alternatives you've considered
Right now I'm doing this in my own query generation with format!()
and it's bad.
Additional context
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request