Skip to content

Use WAL journaling mode by default if custom WAL methods are specified - #105

Merged
penberg merged 4 commits into
tursodatabase:mainfrom
psarna:vwal_default
Jan 12, 2023
Merged

Use WAL journaling mode by default if custom WAL methods are specified#105
penberg merged 4 commits into
tursodatabase:mainfrom
psarna:vwal_default

Conversation

@psarna

@psarna psarna commented Jan 12, 2023

Copy link
Copy Markdown
Contributor

It's reasonable to assume that a database open with custom WAL methods should default to WAL journaling mode.

This commit comes with an updated test which ensures that the database is open in WAL mode without having to resort to calling PRAGMA journal_mode=wal manually.

xPreMainDbOpen hook was only called in case of non-null
WAL pathname, which is a minor mistake - let's fix it.
It's reasonable to assume that a database open with custom WAL methods
should default to WAL journaling mode.
The test now ensures that the database is already open
in WAL mode by default.
@psarna
psarna requested a review from penberg January 12, 2023 10:13
@penberg
penberg merged commit 658072e into tursodatabase:main Jan 12, 2023
psarna added a commit to psarna/libsql that referenced this pull request Jan 23, 2023
@MarinPostma MarinPostma mentioned this pull request Oct 16, 2023
MarinPostma pushed a commit that referenced this pull request Oct 17, 2023
server: Disable Nagle's algorithm
MarinPostma pushed a commit that referenced this pull request Oct 17, 2023
105: Node client for the Hrana protocol r=MarinPostma a=honzasp

Introduce the package ``@libsql/hrana-client`` with a JavaScript client for the Hrana protocol, which should be soon implemented by `sqld`. This will be used to talk to `sqld` from edge functions and other JavaScript environments.

Developers can use this library directly, but it is mainly intended to power adapters for higher-level libraries (Kysely, Knex.js).

Co-authored-by: Jan Špaček <patek.mail@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants