diff options
author | vityaman <vityaman.dev@yandex.ru> | 2025-05-06 15:49:02 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-05-06 16:04:08 +0300 |
commit | 9c3fdca51d8ae892c5ad8f6ef92df73fafc09e28 (patch) | |
tree | 561c599fae4ea29b537a6958b65e1b052548edf2 /yql/essentials/sql/v1/complete/syntax/format.cpp | |
parent | c131e959456f9f9a4adada5623ce3bae4097a8c1 (diff) | |
download | ydb-9c3fdca51d8ae892c5ad8f6ef92df73fafc09e28.tar.gz |
YQL-19747 Complete folder, table and cluster names
---
- Related to `YQL-19747`
- On top of https://github.com/ytsaurus/ytsaurus/pull/1253
- Related to https://github.com/ydb-platform/ydb/issues/9056
- Related to https://github.com/vityaman/ydb/issues/14
- Related to https://github.com/vityaman/ydb/issues/35
- Related to https://github.com/vityaman/ydb/issues/40
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1257
commit_hash:0b842abb27184c88b8177beeea29fb1ea86b7a04
Diffstat (limited to 'yql/essentials/sql/v1/complete/syntax/format.cpp')
-rw-r--r-- | yql/essentials/sql/v1/complete/syntax/format.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/complete/syntax/format.cpp b/yql/essentials/sql/v1/complete/syntax/format.cpp index 1c9f146c923..43c36aea9dd 100644 --- a/yql/essentials/sql/v1/complete/syntax/format.cpp +++ b/yql/essentials/sql/v1/complete/syntax/format.cpp @@ -35,4 +35,17 @@ namespace NSQLComplete { return text; } + TString Quoted(TString content) { + content.prepend('`'); + content.append('`'); + return content; + } + + TString Unquoted(TString content) { + Y_ENSURE(2 <= content.size() && content.front() == '`' && content.back() == '`'); + content.erase(0, 1); + content.pop_back(); + return content; + } + } // namespace NSQLComplete |