Skip to content

Commit 4bbcf33

Browse files
feat(fusion-sql): add support for Files API (personal and shared spaces)
1 parent 5b2c28e commit 4bbcf33

File tree

3 files changed

+449
-0
lines changed

3 files changed

+449
-0
lines changed

singlestoredb/fusion/handler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
json_null_val = "null"
5252
json_string = ~r"\"[ !#-\[\]-\U0010ffff]*(?:\\(?:[\"\\/bfnrt]|u[0-9A-Fa-f]{4})[ !#-\[\]-\U0010ffff]*)*\""
5353
json_number = ~r"-?(0|[1-9][0-9]*)(\.\d*)?([eE][-+]?\d+)?"
54+
55+
file_location = ~r"(personal|shared)"i ws*
5456
''' # noqa: E501
5557

5658
BUILTINS = {
@@ -74,6 +76,9 @@
7476
'<column>': '',
7577
'<catalog-name>': '',
7678
'<link-name>': '',
79+
'<file-location>': r'''
80+
file_location = { PERSONAL | SHARED }
81+
''',
7782
}
7883

7984
BUILTIN_DEFAULTS = { # type: ignore

0 commit comments

Comments
 (0)