-
let session = Session::new_with_name(&conn, "attached").unwrap();
session.attach::<&str>(None).unwrap();can be used to create a session object for an attached databases. The recording of changesets works as expected. However, I haven't found a way to Just feels a bit asymmetric that one can record but not apply 🤷 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
By default, the cargo doc --open --no-deps --features 'session bundled'Lines 396 to 398 in 8ae9407 and Lines 582 to 587 in 8ae9407 |
Beta Was this translation helpful? Give feedback.
-
vs |
Beta Was this translation helpful? Give feedback.
-
|
I can apply to a connection. It will be applied to the "main" database.
Curiously, it doesn't seem to fail when it should. But what I really want
is to apply the inverse to another attached database. If I'm recording from
"attached.table", I would like to apply the inverse to "attached.table" and
not to "main.table".
I'm probably not expressing myself very clearly. Happy to share some code,
when I'm back at my machine. Either way thanks for your quick reply
…On Mon, 26 May 2025, 19:24 gwenn, ***@***.***> wrote:
I had a quick look at ffi::sqlite3changeset_apply and didn't find a flavor
with a database parameter. Am I missing something?
vs
pub fn apply<F, C>(*&self*, cs: &Changeset, filter: Option, conflict: C)
-> Result<()>
—
Reply to this email directly, view it on GitHub
<#1702 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA3K4THTRSI6LW4W5PUF433ANE4ZAVCNFSM6AAAAAB5566OPCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMRXGQ4DQOI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
I am not sure but I think you have to open a dedicated connection to the attached database:
|
Beta Was this translation helpful? Give feedback.

I am not sure but I think you have to open a dedicated connection to the attached database:
https://sqlite.org/sessionintro.html