New database does not appear to be managed by rqlite. Are my queries just being piped directly into SQLite? #1070
-
I was experimenting with porting an existing Roughly and redactively speaking, the existing project would create a database on disk at I would have expected that, in switching to rqlite this either (a) should fail or (b) should be managed by |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
I need much more information about what you are doing, to understand what you are seeing. I am also not sure how you are connecting rqlite does not "manage" an existing SQLite database. It does something completely different -- it's a distributed database system that uses SQLite as its storage engine. Can you show me step-by-step what you are doing?
|
Beta Was this translation helpful? Give feedback.
-
What you are outlining doesn't make much sense, I'm afraid. You seem to mixing a few different concepts, and I suspect you don't have the right mental model of what rqlite actually does. If you run The command line tool, https://github.com/rqlite/rqlite/blob/master/cmd/rqlite/README.md https://github.com/rqlite/rqlite#limitations https://github.com/rqlite/rqlite/blob/master/DOC/FAQ.md#is-it-a-drop-in-replacement-for-sqlite |
Beta Was this translation helpful? Give feedback.
-
I think you have a very specific definition of "works" -- defined as "my client can read and write to a SQLite database", which is what you had before rqlite. From what I can gather you are writing directly to a SQLite file in each case. Sometimes that file is created by rqlite is not involved in what you're doing, you are not interacting with |
Beta Was this translation helpful? Give feedback.
-
If you want to work correctly with rqlite, you must talk to its HTTP API. The client libraries will help with that, but they are not seamless drop-in placements for standard SQLite client libraries. |
Beta Was this translation helpful? Give feedback.
If you want to work correctly with rqlite, you must talk to its HTTP API. The client libraries will help with that, but they are not seamless drop-in placements for standard SQLite client libraries.