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

Insert from file #109

Merged

Conversation

Maksim-Burtsev
Copy link
Contributor

No description provided.

@maximdanilchenko
Copy link
Owner

Btw thanks for the contribution! Very useful method.

@Maksim-Burtsev
Copy link
Contributor Author

@maximdanilchenko should i change something so that you merge this PR?

async def insert_file(
self,
query: str,
filepath: str,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about making it not a path str, but a file obj to make it possible to use it for instance in web servers when someone want to get file by web?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made updates and now method has file_obj param

@maximdanilchenko
Copy link
Owner

Sorry, made a comment, but forgot to submit review

@maximdanilchenko maximdanilchenko merged commit 3e99c9f into maximdanilchenko:master Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants