|
12 | 12 |
|
13 | 13 | class ShowFilesHandler(SQLHandler): |
14 | 14 | """ |
15 | | - SHOW <file-location> FILES |
| 15 | + SHOW file_location FILES |
16 | 16 | [ at_path ] [ <like> ] |
17 | 17 | [ <order-by> ] |
18 | 18 | [ <limit> ] [ recursive ] [ extended ]; |
19 | 19 |
|
| 20 | + file_location = <file-location> |
| 21 | +
|
20 | 22 | # File path to list |
21 | 23 | at_path = AT '<path>' |
22 | 24 |
|
@@ -119,9 +121,11 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: |
119 | 121 |
|
120 | 122 | class UploadFileHandler(SQLHandler): |
121 | 123 | """ |
122 | | - UPLOAD <file-location> FILE TO path |
| 124 | + UPLOAD file_location FILE TO path |
123 | 125 | FROM local_path [ overwrite ]; |
124 | 126 |
|
| 127 | + file_location = <file-location> |
| 128 | +
|
125 | 129 | # Path to file |
126 | 130 | path = '<path>' |
127 | 131 |
|
@@ -179,11 +183,13 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: |
179 | 183 |
|
180 | 184 | class DownloadFileHandler(SQLHandler): |
181 | 185 | """ |
182 | | - DOWNLOAD <file-location> FILE path |
| 186 | + DOWNLOAD file_location FILE path |
183 | 187 | [ local_path ] |
184 | 188 | [ overwrite ] |
185 | 189 | [ encoding ]; |
186 | 190 |
|
| 191 | + file_location = <file-location> |
| 192 | +
|
187 | 193 | # Path to file |
188 | 194 | path = '<path>' |
189 | 195 |
|
@@ -269,7 +275,9 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: |
269 | 275 |
|
270 | 276 | class DropFileHandler(SQLHandler): |
271 | 277 | """ |
272 | | - DROP <file-location> FILE path; |
| 278 | + DROP file_location FILE path; |
| 279 | +
|
| 280 | + file_location = <file-location> |
273 | 281 |
|
274 | 282 | # Path to file |
275 | 283 | path = '<path>' |
@@ -312,9 +320,11 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: |
312 | 320 |
|
313 | 321 | class DropFolderHandler(SQLHandler): |
314 | 322 | """ |
315 | | - DROP <file-location> FOLDER path |
| 323 | + DROP file_location FOLDER path |
316 | 324 | [ recursive ]; |
317 | 325 |
|
| 326 | + file_location = <file-location> |
| 327 | +
|
318 | 328 | # Path to folder |
319 | 329 | path = '<path>' |
320 | 330 |
|
@@ -364,9 +374,11 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: |
364 | 374 |
|
365 | 375 | class CreateFolderHandler(SQLHandler): |
366 | 376 | """ |
367 | | - CREATE <file-location> FOLDER path |
| 377 | + CREATE file_location FOLDER path |
368 | 378 | [ overwrite ]; |
369 | 379 |
|
| 380 | + file_location = <file-location> |
| 381 | +
|
370 | 382 | # Path to folder |
371 | 383 | path = '<path>' |
372 | 384 |
|
|
0 commit comments