Skip to content

Commit

Permalink
feat(fusion-sql): add support for Files API (personal and shared spaces)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogoncalves03 committed Nov 25, 2024
1 parent 5b2c28e commit 12f2c0f
Show file tree
Hide file tree
Showing 3 changed files with 452 additions and 0 deletions.
5 changes: 5 additions & 0 deletions singlestoredb/fusion/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
json_null_val = "null"
json_string = ~r"\"[ !#-\[\]-\U0010ffff]*(?:\\(?:[\"\\/bfnrt]|u[0-9A-Fa-f]{4})[ !#-\[\]-\U0010ffff]*)*\""
json_number = ~r"-?(0|[1-9][0-9]*)(\.\d*)?([eE][-+]?\d+)?"
file_location = ~r"(personal|shared)"i ws*
''' # noqa: E501

BUILTINS = {
Expand All @@ -74,6 +76,9 @@
'<column>': '',
'<catalog-name>': '',
'<link-name>': '',
'<file-location>': r'''
file_location = { PERSONAL | SHARED }
''',
}

BUILTIN_DEFAULTS = { # type: ignore
Expand Down
Loading

0 comments on commit 12f2c0f

Please sign in to comment.