We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When loading an extension with a custom entrypoint the default entrypoint is called.
sql.Register("sqlite3-crypt", &sqlite3.SQLiteDriver{ ConnectHook: func(conn *sqlite3.SQLiteConn) error { // always calls the default entrypoint and not init_db return conn.LoadExtension("/path/to/ysqlite3_crypt_vfs.ext", "init_db") }, })
The extension:
#ifdef _WIN32 __declspec(dllexport) #endif extern "C" int init_db(sqlite3* db, char** error_message, const sqlite3_api_routines* api) noexcept { /* I want to call this entrypoint */ } #ifdef _WIN32 __declspec(dllexport) #endif extern "C" int sqlite3_ysqlitecryptvfs_init(sqlite3* db, char** error_message, const sqlite3_api_routines* api) noexcept { /* But this entrypoint is always called */ }
The text was updated successfully, but these errors were encountered:
92f580b
No branches or pull requests
When loading an extension with a custom entrypoint the default entrypoint is called.
The extension:
The text was updated successfully, but these errors were encountered: