axiodb 22.9.7 → 22.10.8
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 +43 -0
- package/electron/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,11 +55,54 @@ console.log(data.documents);
|
|
|
55
55
|
|
|
56
56
|
## Installation
|
|
57
57
|
|
|
58
|
+
### npm (Library)
|
|
59
|
+
|
|
58
60
|
```bash
|
|
59
61
|
npm install axiodb
|
|
60
62
|
# Node.js ≥20 (also verified on Bun v1.4.0)
|
|
61
63
|
```
|
|
62
64
|
|
|
65
|
+
### CLI & Desktop GUI (System-wide)
|
|
66
|
+
|
|
67
|
+
AxioDB ships a CLI tool and a native Desktop GUI (Electron). The installer
|
|
68
|
+
presents a menu — **1) CLI**, **2) GUI**, **3) Both** — when run interactively,
|
|
69
|
+
and defaults to CLI when piped (`curl | bash`).
|
|
70
|
+
|
|
71
|
+
#### Quick Install (interactive)
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Linux / macOS
|
|
75
|
+
curl -fsSL https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.sh | bash
|
|
76
|
+
|
|
77
|
+
# Windows (PowerShell)
|
|
78
|
+
irm https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.ps1 | iex
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
#### Non-Interactive (choose what you want)
|
|
82
|
+
|
|
83
|
+
Set `CHOICE` before piping to select without the menu:
|
|
84
|
+
|
|
85
|
+
| `CHOICE` | Installs |
|
|
86
|
+
|----------|----------|
|
|
87
|
+
| `1` | CLI only |
|
|
88
|
+
| `2` | GUI (Desktop) only |
|
|
89
|
+
| `3` | CLI + GUI |
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# GUI (Desktop app) — Linux
|
|
93
|
+
curl -fsSL https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.sh | CHOICE=2 bash
|
|
94
|
+
|
|
95
|
+
# GUI (Desktop app) — Windows
|
|
96
|
+
irm https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.ps1 | CHOICE=2 iex
|
|
97
|
+
|
|
98
|
+
# Both CLI + GUI
|
|
99
|
+
curl -fsSL https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.sh | CHOICE=3 bash
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
You can also download installers directly from
|
|
103
|
+
[GitHub Releases](https://github.com/nexoral/AxioDB/releases).
|
|
104
|
+
|
|
105
|
+
|
|
63
106
|
## Basic CRUD
|
|
64
107
|
|
|
65
108
|
CRUD means **Create, Read, Update, and Delete**. The following example creates a database and
|
package/electron/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiodb",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.10.8",
|
|
4
4
|
"description": "The embedded database for Node.js. Replaces SQLite, LowDB, NeDB & raw JSON files with MongoDB-style queries, ACID transactions, zero native dependencies, and built-in InMemoryCache. No compilation, no platform issues. Perfect for desktop apps, CLI tools, and embedded systems.",
|
|
5
5
|
"main": "./lib/config/DB.js",
|
|
6
6
|
"types": "./lib/config/DB.d.ts",
|