Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Shared database file #424

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sqld-libsql-bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ pub fn open_with_regular_wal(
}
drop(opening_lock);
conn.pragma_update(None, "journal_mode", "wal")?;
conn.pragma(None, "journal_mode", "", |v| {
dbg!(v.get_unwrap::<_, String>(0));
Ok(())
})
.unwrap();

Ok(Connection {
conn,
Expand Down
1 change: 1 addition & 0 deletions sqld/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ memmap = "0.7.0"
mimalloc = { version = "0.1.36", default-features = false }
sha256 = "1.1.3"
reqwest = { version = "0.11.16", features = ["json", "rustls-tls"], default-features = false }
rand = "0.8.5"

[dev-dependencies]
proptest = "1.0.0"
Expand Down
1 change: 1 addition & 0 deletions sqld/src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::Result;
pub mod dump;
pub mod factory;
pub mod libsql;
pub mod vfs;
pub mod write_proxy;

const TXN_TIMEOUT_SECS: u64 = 5;
Expand Down
Loading