Skip to content

Commit 300f248

Browse files
temp
1 parent 1bd1aca commit 300f248

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

singlestoredb/fusion/handlers/files.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212

1313
class ShowFilesHandler(SQLHandler):
1414
"""
15-
SHOW <file-location> FILES
15+
SHOW file_location FILES
1616
[ at_path ] [ <like> ]
1717
[ <order-by> ]
1818
[ <limit> ] [ recursive ] [ extended ];
1919
20+
file_location = <file-location>
21+
2022
# File path to list
2123
at_path = AT '<path>'
2224
@@ -119,9 +121,11 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
119121

120122
class UploadFileHandler(SQLHandler):
121123
"""
122-
UPLOAD <file-location> FILE TO path
124+
UPLOAD file_location FILE TO path
123125
FROM local_path [ overwrite ];
124126
127+
file_location = <file-location>
128+
125129
# Path to file
126130
path = '<path>'
127131
@@ -179,11 +183,13 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
179183

180184
class DownloadFileHandler(SQLHandler):
181185
"""
182-
DOWNLOAD <file-location> FILE path
186+
DOWNLOAD file_location FILE path
183187
[ local_path ]
184188
[ overwrite ]
185189
[ encoding ];
186190
191+
file_location = <file-location>
192+
187193
# Path to file
188194
path = '<path>'
189195
@@ -269,7 +275,9 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
269275

270276
class DropFileHandler(SQLHandler):
271277
"""
272-
DROP <file-location> FILE path;
278+
DROP file_location FILE path;
279+
280+
file_location = <file-location>
273281
274282
# Path to file
275283
path = '<path>'
@@ -312,9 +320,11 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
312320

313321
class DropFolderHandler(SQLHandler):
314322
"""
315-
DROP <file-location> FOLDER path
323+
DROP file_location FOLDER path
316324
[ recursive ];
317325
326+
file_location = <file-location>
327+
318328
# Path to folder
319329
path = '<path>'
320330
@@ -364,9 +374,11 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
364374

365375
class CreateFolderHandler(SQLHandler):
366376
"""
367-
CREATE <file-location> FOLDER path
377+
CREATE file_location FOLDER path
368378
[ overwrite ];
369379
380+
file_location = <file-location>
381+
370382
# Path to folder
371383
path = '<path>'
372384

0 commit comments

Comments
 (0)