Skip to content

Add WAL journal mode support#1359

Merged
jberkel merged 1 commit into
stephencelis:masterfrom
dyikai:master
Apr 27, 2026
Merged

Add WAL journal mode support#1359
jberkel merged 1 commit into
stephencelis:masterfrom
dyikai:master

Conversation

@dyikai
Copy link
Copy Markdown
Contributor

@dyikai dyikai commented Apr 27, 2026

Summary:

  • Add journal mode, synchronous, WAL checkpoint, and WAL auto-checkpoint pragmas.
  • Add opt-in WAL setup via Connection initializers and enableWAL().
  • Document WAL usage and migration notes.
  • Cover WAL behavior, read-only URI handling, and temporary sidecar cleanup in tests.

Thanks for taking the time to submit a pull request.

Before submitting, please do the following:

  • Run make lint to check if there are any format errors (install swiftlint first)
  • Run swift test to see if the tests pass.
  • Write new tests for new functionality.
  • Update documentation comments where applicable.

Summary:
- Add journal mode, synchronous, WAL checkpoint, and WAL auto-checkpoint pragmas.
- Add opt-in WAL setup via Connection initializers and enableWAL().
- Document WAL usage and migration notes.
- Cover WAL behavior, read-only URI handling, and temporary sidecar cleanup in tests.
@dyikai
Copy link
Copy Markdown
Contributor Author

dyikai commented Apr 27, 2026

@jberkel We always encounter this warning in the figure, so I plan to adapt the WAL mode to SQLite.swift. Can you check if it is suitable for merging into the main branch?
image

@jberkel
Copy link
Copy Markdown
Collaborator

jberkel commented Apr 27, 2026

looks good, thanks!

@jberkel jberkel merged commit a4b606f into stephencelis:master Apr 27, 2026
4 of 8 checks passed
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