-
Notifications
You must be signed in to change notification settings - Fork 27
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
Use Glob in PUT file paths and Allow for Multi File Upload #13
Conversation
FYI: Until the limit to concurrency is implemented this PR is not ready for review. I am more than happy for your comments. But please know some of this code is stuff I plan to clean on my own (right now this is all being coded while I am on planes and busses). |
@andrusha besides the two questions I had this PR is good to go. I decided to create a way for the user to define the file size and concurrency thresholds. Let me know your thoughts! |
Use spawn blocking for computationally intensive glob traverse Use async tokio fs for metadata fetching Move all PUT query logic into put.rs file Delete files feature for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Спасибо! |
This is a work in progress, I would be very thankful for any feedback.
By adding the GLOB package, file paths like the one below are now allowed:
api.exec(&format!("PUT file://{} @%OSCAR_AGE_MALE;", "/Users/colin/test-snowflake/data/*.csv"))
This PR uses Tokio tasks to manage spawn a thread for each individual file.
This PR also moves libraries only required for the PUT command into the
file
feature