Skip to content

expose the libsql_close_hook to loadable extensions #436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

tantaman
Copy link
Contributor

libsql_close_hook was added here (#219) but it is not available to loadable extensions.

Following the same pattern was was done for wal_methods_unregister (47e59b7) to expose this to loadable extensions.

libsql_close_hook was added here in tursodatabase#219 but it is not available to loadable extensions.

Following the same pattern was was done for `wal_methods_unregister` (tursodatabase@47e59b7) to expose this to loadable extensions.

- Will be used in tursodatabase#434 to do cleanup of cr-sqlite
@penberg
Copy link
Collaborator

penberg commented Oct 5, 2023

@psarna i think this is for you

@@ -370,6 +370,7 @@ struct libsql_api_routines {
struct libsql_wal_methods *(*wal_methods_find)(const char *);
int (*wal_methods_register)(struct libsql_wal_methods*);
int (*wal_methods_unregister)(struct libsql_wal_methods*);
void *(*close_hook)(sqlite3*, void(*)(void*,sqlite3*), void *pArg);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that one will be available in libSQL 0.2.3 - let's add a comment, following SQLite style above

@penberg penberg added this pull request to the merge queue Oct 11, 2023
Merged via the queue into tursodatabase:main with commit 7655c29 Oct 11, 2023
@MarinPostma MarinPostma mentioned this pull request Oct 17, 2023
github-merge-queue bot pushed a commit that referenced this pull request Oct 17, 2023
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.

3 participants