Replies: 1 comment
-
I don’t think this is a question regarding sqlmodel itself but more about how SQLite works. Generally, if you search around how to access SQLite through a remote server, most people will tell you just don’t. It’s not worth the hassle. SQLite is only accessible through a file and is not meant to be accessed remotely. Use a database that can communicate over TCP like MySQL or Postgres. However, if you really do insist on doing so, you could do some weird hacks like sshfs to the machine storing the db file and communicating the file there. Another really jank way is just to copy the file to your local machine, access it, then copy it back. Anyways, my suggestion would to be just migrate your data to another database that supports remote access |
Beta Was this translation helpful? Give feedback.
-
First Check
Commit to Help
Example Code
Description
Is it possible to have the sqlite file stored in a cloud storage, like an AWS or OCI bucket, and read/write the database file from/to there automatically?
Operating System
Linux, macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
Python 3.11.1
Additional Context
I'm creating an API using FastAPI and currently using TinyDB with JSON file stored in an OCI bucket. I'd like to have the same thing with SQLModel and SQLite database file.
Beta Was this translation helpful? Give feedback.
All reactions