Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fusion-sql): add support for Files API (personal and shared spaces) #48

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

nunogoncalves03
Copy link
Member

We have recently updated the Management API to include new endpoints for managing files in personal and shared spaces. Thus, we would like to update the Python SDK to support these resources as well.

This PR is a follow-up of #46 and includes the Fusion SQL changes related to the Files API. The following commands have been created:

CREATE { PERSONAL | SHARED } FOLDER '<path>' [ OVERWRITE ];
DOWNLOAD { PERSONAL | SHARED } FILE '<path>' [ TO '<local_path>' ] [ OVERWRITE ] [ ENCODING '<encoding>' ];
DROP { PERSONAL | SHARED } { FILE | FOLDER } '<path>' [ RECURSIVE ];
SHOW { PERSONAL | SHARED } FILES [ AT '<path>' ] [ LIKE '<like>' ] [ ORDER BY '<order-by>' [ ASC | DESC ],... ] [ LIMIT ] [ RECURSIVE ] [ EXTENDED ];
UPLOAD { PERSONAL | SHARED } FILE TO '<path>' FROM '<local_path>' [ OVERWRITE ];

cc: @ricardoasmarques @kanitsharma

@nunogoncalves03 nunogoncalves03 added the feature New feature or request label Nov 26, 2024
@nunogoncalves03 nunogoncalves03 self-assigned this Nov 26, 2024
singlestoredb/fusion/handlers/files.py Outdated Show resolved Hide resolved
Base automatically changed from ngoncalves/files-api-pythonsdk to ngoncalves/file-location-refactor December 2, 2024 16:35
@nunogoncalves03 nunogoncalves03 force-pushed the ngoncalves/file-location-refactor branch from cd2fbb9 to b831054 Compare December 2, 2024 17:49
@nunogoncalves03 nunogoncalves03 force-pushed the ngoncalves/file-location-refactor branch from 8e2fc5b to fc5bbaa Compare December 3, 2024 18:10
Base automatically changed from ngoncalves/file-location-refactor to main December 3, 2024 20:03
@kesmit13 kesmit13 merged commit 528a82e into main Dec 3, 2024
11 checks passed
@kesmit13 kesmit13 deleted the ngoncalves/files-api-fusionsql branch December 3, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants