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

Being able to connect to a database that is located in a Buffer variable #1760

Open
Dev-InSoft opened this issue Feb 9, 2024 · 1 comment

Comments

@Dev-InSoft
Copy link

Dev-InSoft commented Feb 9, 2024

Summary

In an Azure Functions server, a request receives an SQLite database file as a parameter. It reads it from FORMDATA and assigns it to a variable. It would be nice if you could connect to a database without having to store the buffer on disk.

Proposed implementation

Azure Functions do not allow writing to disk in certain environments, so it is not necessary to connect to the in-memory database

@segevfiner
Copy link

I'd assume the way to do this is binding sqlite3_serialize and sqlite3_deserialize. SQLite3 can't directly work against some random buffer, but it can deserialize from it and serialize to a new buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants