This package provides the precompiled SQLite3 database engine, built using cpp.js, for easy integration into JavaScript, WebAssembly and React Native projects. It offers powerful database capabilities, ensuring high performance and cross-platform compatib
npm install @cpp.js/package-sqlite3-wasm-multithread``sh`
npm install @cpp.js/package-sqlite3
To enable the library, modify the cppjs.config.js file as shown below.
`diff
+import sqlite3 from '@cpp.js/package-sqlite3/cppjs.config.js';
export default {
dependencies: [
+ sqlite3
]
paths: {
config: import.meta.url,
}
};
`
diff
+#include std::string Native::sample() {
+ return std::string(sqlite3_libversion());
}
``Sqlite3 Homepage: https://www.sqlite.org