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

Support a SQLite connector #10060

Open
erikerlandson opened this issue Nov 24, 2021 · 5 comments
Open

Support a SQLite connector #10060

erikerlandson opened this issue Nov 24, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@erikerlandson
Copy link

There is some philosophical resistance to just supporting a generalized JDBC connector (#3105), so here is a tracking issue for supporting specific SQLite connector

@lhofhansl
Copy link
Member

Curious how you envision this would work.

Would each worker load its own, independent SQLite database? Or would only one worker load the database?
Or do you have a shared (posix compliant) media, and concurrent access is handled by locking, and the each worker opens the same database file?

@erikerlandson
Copy link
Author

erikerlandson commented Nov 28, 2021

@lhofhansl I would probably be satisfied with whatever makes it easiest to implement. If that means only a single worker can access the SQLite DB and that reduces parallelism, I would consider that a fair tradeoff.

Our particular use case would allow for read-only access to the SQLite DB, which usually makes concurrency easier but I don't know if a read-only connector is OK with trino.

Our particular situation is that we have some existing SQLite DB, and I mostly just want to send trino a connect-url for that DB, so that it now behaves like just another catalog in my trino deployment.

@MichaelTiemannOSC
Copy link

One of the Datasette (https://datasette.io/) patterns is to allow myriad instances of Datasette to serve readonly data to whomever. It would be fantastic to at least be able to support this pattern, making Datasette instances data sources that can be federated. It would be up to the myriad SQLite data providers to update their databases as new data arrives.

@dforsber
Copy link

This may be related: https://github.com/dacort/athena-sqlite

@MichaelTiemannOSC
Copy link

This may be related: https://github.com/dacort/athena-sqlite

Nice bit of archeology, but that repo has not been active for 4 years. It requires Python 3.7 which many packages no longer support at all (and many more deprecate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

5 participants