@cpp.js/package-sqlite3
v1.0.0-beta.24
Published
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
Downloads
394
Maintainers
Readme
@cpp.js/package-sqlite3
Precompiled sqlite3 library built with cpp.js for seamless integration in JavaScript, WebAssembly and React Native projects.
Integration
Start by installing these package with the following command:
npm install @cpp.js/package-sqlite3
To enable the library, modify the cppjs.config.js file as shown below.
+import sqlite3 from '@cpp.js/package-sqlite3/cppjs.config.js';
export default {
dependencies: [
+ sqlite3
]
paths: {
config: import.meta.url,
}
};
Usage
Below are the steps to use the sqlite3 in your C++ or JavaScript code.
Usage in C++ Code
+#include <sqlite3.h>
std::string Native::sample() {
+ return std::string(sqlite3_libversion());
}
License
This project includes the precompiled sqlite3 library, which is distributed under the Public Domain License.
Sqlite3 Homepage: https://www.sqlite.org