@cpp.js/package-sqlite3 1.0.0 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -91
- package/cppjs.config.js +6 -10
- package/package.json +10 -15
- package/CHANGELOG.md +0 -20
- package/README.md +0 -50
- package/cppjs-package-sqlite3.podspec +0 -13
- package/cppjs.build.js +0 -22
- package/dist/prebuilt/Android-arm64-v8a/include/sqlite3.h +0 -13620
- package/dist/prebuilt/Android-arm64-v8a/include/sqlite3ext.h +0 -719
- package/dist/prebuilt/Android-arm64-v8a/lib/libsqlite3.la +0 -41
- package/dist/prebuilt/Android-arm64-v8a/lib/libsqlite3.so +0 -0
- package/dist/prebuilt/Android-arm64-v8a/lib/pkgconfig/sqlite3.pc +0 -13
- package/dist/prebuilt/Android-arm64-v8a/share/man/man1/sqlite3.1 +0 -161
- package/dist/prebuilt/Android-x86_64/include/sqlite3.h +0 -13620
- package/dist/prebuilt/Android-x86_64/include/sqlite3ext.h +0 -719
- package/dist/prebuilt/Android-x86_64/lib/libsqlite3.la +0 -41
- package/dist/prebuilt/Android-x86_64/lib/libsqlite3.so +0 -0
- package/dist/prebuilt/Android-x86_64/lib/pkgconfig/sqlite3.pc +0 -13
- package/dist/prebuilt/Android-x86_64/share/man/man1/sqlite3.1 +0 -161
- package/dist/prebuilt/CMakeLists.txt +0 -44
- package/dist/prebuilt/Emscripten-x86_64/include/sqlite3.h +0 -13620
- package/dist/prebuilt/Emscripten-x86_64/include/sqlite3ext.h +0 -719
- package/dist/prebuilt/Emscripten-x86_64/lib/libsqlite3.a +0 -0
- package/dist/prebuilt/Emscripten-x86_64/lib/libsqlite3.la +0 -41
- package/dist/prebuilt/Emscripten-x86_64/lib/pkgconfig/sqlite3.pc +0 -13
- package/dist/prebuilt/Emscripten-x86_64/share/man/man1/sqlite3.1 +0 -161
- package/dist/prebuilt/iOS-iphoneos/include/sqlite3.h +0 -13620
- package/dist/prebuilt/iOS-iphoneos/include/sqlite3ext.h +0 -719
- package/dist/prebuilt/iOS-iphoneos/lib/libsqlite3.a +0 -0
- package/dist/prebuilt/iOS-iphoneos/lib/libsqlite3.la +0 -41
- package/dist/prebuilt/iOS-iphoneos/lib/pkgconfig/sqlite3.pc +0 -13
- package/dist/prebuilt/iOS-iphoneos/share/man/man1/sqlite3.1 +0 -161
- package/dist/prebuilt/iOS-iphonesimulator/include/sqlite3.h +0 -13620
- package/dist/prebuilt/iOS-iphonesimulator/include/sqlite3ext.h +0 -719
- package/dist/prebuilt/iOS-iphonesimulator/lib/libsqlite3.a +0 -0
- package/dist/prebuilt/iOS-iphonesimulator/lib/libsqlite3.la +0 -41
- package/dist/prebuilt/iOS-iphonesimulator/lib/pkgconfig/sqlite3.pc +0 -13
- package/dist/prebuilt/iOS-iphonesimulator/share/man/man1/sqlite3.1 +0 -161
- package/sqlite3.xcframework/Info.plist +0 -50
- package/sqlite3.xcframework/ios-arm64_arm64e/Headers/sqlite3.h +0 -13620
- package/sqlite3.xcframework/ios-arm64_arm64e/Headers/sqlite3ext.h +0 -719
- package/sqlite3.xcframework/ios-arm64_arm64e/libsqlite3.a +0 -0
- package/sqlite3.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/sqlite3.h +0 -13620
- package/sqlite3.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/sqlite3ext.h +0 -719
- package/sqlite3.xcframework/ios-arm64_arm64e_x86_64-simulator/libsqlite3.a +0 -0
package/LICENSE
CHANGED
|
@@ -1,91 +1,21 @@
|
|
|
1
|
-
License
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
that actually implement the SQLite RDBMS.
|
|
23
|
-
* All of the code used to compile the
|
|
24
|
-
[command-line interface](https://sqlite.org/cli.html)
|
|
25
|
-
* All of the code used to build various utility programs such as
|
|
26
|
-
"sqldiff", "sqlite3_rsync", and "sqlite3_analyzer".
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
The public domain source files usually contain a header comment
|
|
30
|
-
similar to the following to make it clear that the software is
|
|
31
|
-
public domain.
|
|
32
|
-
|
|
33
|
-
> ~~~
|
|
34
|
-
The author disclaims copyright to this source code. In place of
|
|
35
|
-
a legal notice, here is a blessing:
|
|
36
|
-
|
|
37
|
-
* May you do good and not evil.
|
|
38
|
-
* May you find forgiveness for yourself and forgive others.
|
|
39
|
-
* May you share freely, never taking more than you give.
|
|
40
|
-
~~~
|
|
41
|
-
|
|
42
|
-
Almost every file you find in this source repository will be
|
|
43
|
-
public domain. But there are a small number of exceptions:
|
|
44
|
-
|
|
45
|
-
Non-Public-Domain Code Included With This Source Repository AS A Convenience
|
|
46
|
-
----------------------------------------------------------------------------
|
|
47
|
-
|
|
48
|
-
This repository contains a (relatively) small amount of non-public-domain
|
|
49
|
-
code used to help implement the configuration and build logic. In other
|
|
50
|
-
words, there are some non-public-domain files used to implement:
|
|
51
|
-
|
|
52
|
-
> ~~~
|
|
53
|
-
./configure && make
|
|
54
|
-
~~~
|
|
55
|
-
|
|
56
|
-
In all cases, the non-public-domain files included with this
|
|
57
|
-
repository have generous BSD-style licenses. So anyone is free to
|
|
58
|
-
use any of the code in this source repository for any purpose, though
|
|
59
|
-
attribution may be required to reuse or republish the configure and
|
|
60
|
-
build scripts. None of the non-public-domain code ever actually reaches
|
|
61
|
-
the build products, such as "sqlite3.c", however, so no attribution is
|
|
62
|
-
required to use SQLite itself. The non-public-domain code consists of
|
|
63
|
-
scripts used to help compile SQLite. The non-public-domain code is
|
|
64
|
-
technically not part of SQLite. The non-public-domain code is
|
|
65
|
-
included in this repository as a convenience to developers, so that those
|
|
66
|
-
who want to build SQLite do not need to go download a bunch of
|
|
67
|
-
third-party build scripts in order to compile SQLite.
|
|
68
|
-
|
|
69
|
-
Non-public-domain code included in this respository includes:
|
|
70
|
-
|
|
71
|
-
* The ["autosetup"](http://msteveb.github.io/autosetup/) configuration
|
|
72
|
-
system that is contained (mostly) the autosetup/ directory, but also
|
|
73
|
-
includes the "./configure" script at the top-level of this archive.
|
|
74
|
-
Autosetup has a separate BSD-style license. See the
|
|
75
|
-
[autosetup/LICENSE](http://msteveb.github.io/autosetup/license/)
|
|
76
|
-
for details.
|
|
77
|
-
|
|
78
|
-
* There are BSD-style licenses on some of the configuration
|
|
79
|
-
software found in the legacy autoconf/ directory and its
|
|
80
|
-
subdirectories.
|
|
81
|
-
|
|
82
|
-
The following unix shell command is can be run from the top-level
|
|
83
|
-
of this source repository in order to remove all non-public-domain
|
|
84
|
-
code:
|
|
85
|
-
|
|
86
|
-
> ~~~
|
|
87
|
-
rm -rf configure autosetup autoconf
|
|
88
|
-
~~~
|
|
89
|
-
|
|
90
|
-
If you unpack this source repository and then run the command above, what
|
|
91
|
-
is left will be 100% public domain.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Buğra Sarı
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/cppjs.config.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import sqlite3Wasm from '@cpp.js/package-sqlite3-wasm/cppjs.config.js';
|
|
2
|
+
import sqlite3Android from '@cpp.js/package-sqlite3-android/cppjs.config.js';
|
|
3
|
+
import sqlite3IOS from '@cpp.js/package-sqlite3-ios/cppjs.config.js';
|
|
2
4
|
|
|
3
5
|
export default {
|
|
4
|
-
general: {
|
|
5
|
-
name: 'sqlite3',
|
|
6
|
-
},
|
|
7
|
-
export: {
|
|
8
|
-
type: 'cmake',
|
|
9
|
-
},
|
|
10
6
|
dependencies: [
|
|
11
|
-
|
|
7
|
+
sqlite3Wasm,
|
|
8
|
+
sqlite3Android,
|
|
9
|
+
sqlite3IOS
|
|
12
10
|
],
|
|
13
11
|
paths: {
|
|
14
12
|
config: import.meta.url,
|
|
15
|
-
base: '../..',
|
|
16
|
-
output: 'dist',
|
|
17
13
|
},
|
|
18
14
|
};
|
package/package.json
CHANGED
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cpp.js/package-sqlite3",
|
|
3
|
-
"version": "
|
|
4
|
-
"nativeVersion": "3.
|
|
5
|
-
"description": "This package provides the precompiled
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
|
+
"nativeVersion": "3.51.1",
|
|
5
|
+
"description": "This package provides the precompiled sqlite3 library, built using cpp.js, for easy integration into JavaScript, WebAssembly and React Native projects. It offers database functionalities through the sqlite3 API, ensuring high performance and cross-platform compatibility. Ideal for use in web and mobile applications.",
|
|
6
6
|
"homepage": "https://github.com/bugra9/cpp.js/tree/main/packages/cppjs-package-sqlite3#readme",
|
|
7
7
|
"repository": "https://github.com/bugra9/cpp.js.git",
|
|
8
|
-
"license": "
|
|
8
|
+
"license": "",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@cpp.js/package-
|
|
11
|
+
"@cpp.js/package-sqlite3-wasm": "^2.0.0-beta.1",
|
|
12
|
+
"@cpp.js/package-sqlite3-ios": "^2.0.0-beta.1",
|
|
13
|
+
"@cpp.js/package-sqlite3-android": "^2.0.0-beta.1"
|
|
12
14
|
},
|
|
13
15
|
"devDependencies": {
|
|
14
|
-
"cpp.js": "^
|
|
16
|
+
"cpp.js": "^2.0.0-beta.1"
|
|
15
17
|
},
|
|
16
18
|
"keywords": [
|
|
17
19
|
"sqlite",
|
|
18
20
|
"sqlite3",
|
|
21
|
+
"libsqlite",
|
|
19
22
|
"libsqlite3",
|
|
20
|
-
"database",
|
|
21
23
|
"cpp.js-package",
|
|
22
24
|
"webassembly",
|
|
23
25
|
"react-native"
|
|
24
|
-
]
|
|
25
|
-
"scripts": {
|
|
26
|
-
"build": "cppjs build",
|
|
27
|
-
"build:wasm": "cppjs build -p WebAssembly",
|
|
28
|
-
"build:android": "cppjs build -p Android",
|
|
29
|
-
"build:ios": "cppjs build -p iOS",
|
|
30
|
-
"clear": "rm -rf .cppjs dist *.xcframework"
|
|
31
|
-
}
|
|
26
|
+
]
|
|
32
27
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# @cpp.js/package-sqlite3
|
|
2
|
-
|
|
3
|
-
## 1.0.0
|
|
4
|
-
|
|
5
|
-
### Major Changes
|
|
6
|
-
|
|
7
|
-
- 🚀 first stable release
|
|
8
|
-
|
|
9
|
-
### Patch Changes
|
|
10
|
-
|
|
11
|
-
- Updated dependencies
|
|
12
|
-
- @cpp.js/package-zlib@1.0.0
|
|
13
|
-
|
|
14
|
-
## 1.0.0-beta.25
|
|
15
|
-
|
|
16
|
-
### Patch Changes
|
|
17
|
-
|
|
18
|
-
- chore: add initial version of CHANGELOGS files
|
|
19
|
-
- Updated dependencies
|
|
20
|
-
- @cpp.js/package-zlib@1.0.0-beta.29
|
package/README.md
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# @cpp.js/package-sqlite3
|
|
2
|
-
**Precompiled sqlite3 library built with cpp.js for seamless integration in JavaScript, WebAssembly and React Native projects.**
|
|
3
|
-
|
|
4
|
-
<a href="https://www.npmjs.com/package/@cpp.js/package-sqlite3">
|
|
5
|
-
<img alt="NPM version" src="https://img.shields.io/npm/v/@cpp.js/package-sqlite3?style=for-the-badge" />
|
|
6
|
-
</a>
|
|
7
|
-
<a href="https://www.sqlite.org">
|
|
8
|
-
<img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Funpkg.com%2F%40cpp.js%2Fpackage-sqlite3%2Fpackage.json&query=%24.nativeVersion&style=for-the-badge&label=SQLite" />
|
|
9
|
-
</a>
|
|
10
|
-
<a href="https://www.sqlite.org/copyright.html">
|
|
11
|
-
<img alt="License" src="https://img.shields.io/npm/l/%40cpp.js%2Fpackage-sqlite3?style=for-the-badge" />
|
|
12
|
-
</a>
|
|
13
|
-
|
|
14
|
-
## Integration
|
|
15
|
-
Start by installing these package with the following command:
|
|
16
|
-
|
|
17
|
-
```sh
|
|
18
|
-
npm install @cpp.js/package-sqlite3
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
To enable the library, modify the cppjs.config.js file as shown below.
|
|
22
|
-
```diff
|
|
23
|
-
+import sqlite3 from '@cpp.js/package-sqlite3/cppjs.config.js';
|
|
24
|
-
|
|
25
|
-
export default {
|
|
26
|
-
dependencies: [
|
|
27
|
-
+ sqlite3
|
|
28
|
-
]
|
|
29
|
-
paths: {
|
|
30
|
-
config: import.meta.url,
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Usage
|
|
36
|
-
Below are the steps to use the sqlite3 in your C++ or JavaScript code.
|
|
37
|
-
|
|
38
|
-
### Usage in C++ Code
|
|
39
|
-
```diff
|
|
40
|
-
+#include <sqlite3.h>
|
|
41
|
-
|
|
42
|
-
std::string Native::sample() {
|
|
43
|
-
+ return std::string(sqlite3_libversion());
|
|
44
|
-
}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## License
|
|
48
|
-
This project includes the precompiled sqlite3 library, which is distributed under the [Public Domain License](https://www.sqlite.org/copyright.html).
|
|
49
|
-
|
|
50
|
-
Sqlite3 Homepage: [https://www.sqlite.org](https://www.sqlite.org)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require "json"
|
|
2
|
-
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
3
|
-
|
|
4
|
-
Pod::Spec.new do |s|
|
|
5
|
-
s.module_name = "sqlite3"
|
|
6
|
-
s.name = "cppjs-package-sqlite3"
|
|
7
|
-
s.version = package["nativeVersion"]
|
|
8
|
-
s.summary = "SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine."
|
|
9
|
-
s.homepage = "https://www.sqlite.org"
|
|
10
|
-
s.author = "SQLite Authors"
|
|
11
|
-
s.source = { :http => "https://cpp.js.org" }
|
|
12
|
-
s.vendored_frameworks = 'z.xcframework', 'sqlite3.xcframework'
|
|
13
|
-
end
|
package/cppjs.build.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const platformBuild = {
|
|
2
|
-
'Emscripten-x86_64': ['--enable-shared=no', '--host=wasm32-unknown-emscripten'],
|
|
3
|
-
'Android-arm64-v8a': ['--enable-static=no', '--host=aarch64-linux-android'],
|
|
4
|
-
'Android-x86_64': ['--enable-static=no', '--host=x86_64-linux-android'],
|
|
5
|
-
'iOS-iphoneos': ['--enable-shared=no', '--host=arm-apple-darwin'],
|
|
6
|
-
'iOS-iphonesimulator': ['--enable-shared=no', '--host=x86_64-apple-darwin'],
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
getURL: (version) => {
|
|
11
|
-
const versionArray = version.split('.');
|
|
12
|
-
const VERSION = (versionArray[0] * 1000000 + versionArray[1] * 10000 + versionArray[2] * 100).toString();
|
|
13
|
-
return `https://www.sqlite.org/2025/sqlite-autoconf-${VERSION}.tar.gz`;
|
|
14
|
-
},
|
|
15
|
-
buildType: 'configure',
|
|
16
|
-
getBuildParams: (platform) => [
|
|
17
|
-
...(platformBuild[platform] || []),
|
|
18
|
-
],
|
|
19
|
-
env: [
|
|
20
|
-
'CFLAGS="-DSQLITE_NOHAVE_SYSTEM -DSQLITE_DISABLE_LFS -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_NORMALIZE -DSQLITE_ENABLE_COLUMN_METADATA"',
|
|
21
|
-
],
|
|
22
|
-
};
|