Skip to content

Add function to register wal hook#1353

Open
gfanto wants to merge 1 commit intomattn:masterfrom
gfanto:add-wal-hook
Open

Add function to register wal hook#1353
gfanto wants to merge 1 commit intomattn:masterfrom
gfanto:add-wal-hook

Conversation

@gfanto
Copy link
Copy Markdown

@gfanto gfanto commented Sep 24, 2025

I have the use case of adding a custom wal hook.
This PR adds support for registering a WAL hook on a connection via a new method:

func (c *SQLiteConn) RegisterWalHook(callback func(dbName string, nPages int) int)

@mattn
Copy link
Copy Markdown
Owner

mattn commented Mar 16, 2026

There's a typo in callback.go: hadlePtr should be handlePtr.

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