@citadeldb/wasm 0.3.0 → 0.4.1

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @citadeldb/wasm
2
2
 
3
- WebAssembly bindings for [Citadel](https://github.com/yp3y5akh0v/citadel) an encrypted-first embedded database engine that outperforms unencrypted SQLite.
3
+ WebAssembly bindings for [Citadel](https://github.com/yp3y5akh0v/citadel) - an encrypted-first embedded database engine that outperforms unencrypted SQLite.
4
4
 
5
- Every value is encrypted at rest with AES-256-CTR + HMAC-SHA256. Runs entirely in the browser or Node.js with no server required.
5
+ Every page is encrypted at rest with AES-256-CTR + HMAC-SHA256. Runs entirely in the browser or Node.js with no server required.
6
6
 
7
7
  ## Install
8
8
 
@@ -59,9 +59,17 @@ db.free();
59
59
 
60
60
  ## SQL Support
61
61
 
62
- CREATE/DROP TABLE, CREATE/DROP INDEX, INSERT, SELECT, UPDATE, DELETE, JOINs (INNER, LEFT, RIGHT, CROSS), subqueries, aggregates, DISTINCT, GROUP BY, ORDER BY, LIMIT/OFFSET, BETWEEN, LIKE, CASE, prepared statements.
62
+ **Statements** - CREATE/DROP TABLE, ALTER TABLE (ADD/DROP/RENAME COLUMN, RENAME TABLE), CREATE/DROP INDEX, INSERT (VALUES, SELECT), SELECT, UPDATE, DELETE, BEGIN/COMMIT/ROLLBACK, EXPLAIN
63
63
 
64
- Types: INTEGER, REAL, TEXT, BLOB, BOOLEAN.
64
+ **Constraints** - PRIMARY KEY, NOT NULL, UNIQUE, DEFAULT, CHECK (column + table level), FOREIGN KEY (RESTRICT/NO ACTION)
65
+
66
+ **Types** - INTEGER, REAL, TEXT, BLOB, BOOLEAN
67
+
68
+ **Clauses** - JOINs (INNER, LEFT, RIGHT, CROSS), subqueries (scalar, IN, EXISTS), CTEs (WITH / WITH RECURSIVE), UNION/INTERSECT/EXCEPT [ALL], CASE, BETWEEN, LIKE, DISTINCT, GROUP BY/HAVING, ORDER BY, LIMIT/OFFSET
69
+
70
+ **Functions** - COUNT, SUM, AVG, MIN, MAX, LENGTH, UPPER, LOWER, SUBSTR, ABS, ROUND, COALESCE, NULLIF, CAST, TYPEOF, HEX, TRIM, REPLACE, RANDOM, IIF, GLOB
71
+
72
+ **Prepared statements** - `$1, $2, ...` positional parameters
65
73
 
66
74
  ## License
67
75
 
Binary file
package/package.json CHANGED
@@ -2,11 +2,12 @@
2
2
  "name": "@citadeldb/wasm",
3
3
  "type": "module",
4
4
  "description": "WASM bindings for Citadel encrypted database",
5
- "version": "0.3.0",
6
- "keywords": ["database", "embedded-database", "encryption", "encrypted-database", "sql", "wasm", "webassembly"],
7
- "homepage": "https://citadeldb.dev",
8
- "repository": {"type": "git", "url": "git+https://github.com/yp3y5akh0v/citadel.git"},
5
+ "version": "0.4.1",
9
6
  "license": "MIT OR Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/yp3y5akh0v/citadel"
10
+ },
10
11
  "files": [
11
12
  "citadel_wasm_bg.wasm",
12
13
  "citadel_wasm.js",
@@ -15,9 +16,19 @@
15
16
  "LICENSE-MIT"
16
17
  ],
17
18
  "main": "citadel_wasm.js",
19
+ "homepage": "https://citadeldb.dev",
18
20
  "types": "citadel_wasm.d.ts",
19
21
  "sideEffects": [
20
22
  "./citadel_wasm.js",
21
23
  "./snippets/*"
24
+ ],
25
+ "keywords": [
26
+ "database",
27
+ "embedded-database",
28
+ "encryption",
29
+ "encrypted-database",
30
+ "sql",
31
+ "wasm",
32
+ "webassembly"
22
33
  ]
23
34
  }