We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd0ed12 commit e9c8440Copy full SHA for e9c8440
README.md
@@ -314,6 +314,22 @@ sqlite3pp::query qry(
314
"FROM foods");
315
```
316
317
+## loadable extension
318
+
319
+```cpp
320
+#define SQLITE3PP_LOADABLE_EXTENSION
321
+#include <sqlite3ppext.h>
322
323
+int sqlite3_extension_init(
324
+ sqlite3 *pdb,
325
+ char **pzErrMsg,
326
+ const sqlite3_api_routines *pApi) {
327
+ SQLITE_EXTENSION_INIT2(pApi);
328
+ sqlite3pp:database db(sqlite3pp::ext::borrow(pdb));
329
+ // pdb is not closed since db just borrows it.
330
+}
331
332
+```
333
334
335
# See also
0 commit comments