axiodb 22.16.0 โ 22.17.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,41 +1,40 @@
|
|
|
1
1
|
# AxioDB: The Embedded Database for Node.js
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/axiodb)
|
|
4
|
-
[](https://www.npmjs.com/package/axiodb)
|
|
5
4
|
[](https://www.npmjs.com/package/axiodb)
|
|
6
5
|
[](https://www.npmjs.com/package/axiodb)
|
|
7
6
|
[](https://www.npmjs.com/package/axiodb)
|
|
8
7
|
[](https://www.npmjs.com/package/axiodb)
|
|
8
|
+
[](https://www.jsdelivr.com/package/npm/axiodb)
|
|
9
9
|
[](https://www.npmjs.com/package/axiodb)
|
|
10
|
-
[](https://www.jsdelivr.com/package/npm/axiodb)
|
|
11
10
|
[](https://www.npmjs.com/package/axiodb)
|
|
12
|
-
[](https://github.com/nexoral/AxioDB/actions/workflows/Push.yml)
|
|
15
|
-
[](https://github.com/nexoral/AxioDB/actions/workflows/github-code-scanning/codeql)
|
|
16
|
-
[](https://socket.dev/npm/package/axiodb)
|
|
17
|
-
[](https://github.com/nexoral/AxioDB)
|
|
18
|
-
|
|
11
|
+
[](https://www.npmjs.com/package/axiodb)
|
|
19
12
|
[](https://nodejs.org)
|
|
20
13
|
[](https://github.com/nexoral/AxioDB/actions/workflows/Push.yml)
|
|
14
|
+
[](https://bun.sh)
|
|
15
|
+
[](https://deno.com)
|
|
21
16
|
[](https://www.typescriptlang.org/)
|
|
22
|
-
[](https://opensource.org/licenses/MIT)
|
|
18
|
+
[](https://github.com/nexoral/AxioDB)
|
|
19
|
+
[](https://github.com/nexoral/AxioDB/forks)
|
|
20
|
+
[](https://github.com/nexoral/AxioDB/graphs/contributors)
|
|
21
|
+
[](https://github.com/nexoral/AxioDB/commits/main)
|
|
27
22
|
|
|
28
|
-
|
|
23
|
+
[](https://github.com/nexoral/AxioDB/actions/workflows/Push.yml)
|
|
24
|
+
[](https://github.com/nexoral/AxioDB/actions/workflows/github-code-scanning/codeql)
|
|
29
25
|
|
|
30
|
-
**
|
|
26
|
+
๐ **[Official Documentation โ axiodb.in](https://axiodb.in/)**: full guides, API reference, and examples. This README is a quick start.
|
|
31
27
|
|
|
32
|
-
|
|
28
|
+
## Quick start
|
|
33
29
|
|
|
34
|
-
|
|
30
|
+
```bash
|
|
31
|
+
npm install axiodb
|
|
32
|
+
```
|
|
35
33
|
|
|
36
34
|
```javascript
|
|
37
35
|
const { AxioDB } = require('axiodb');
|
|
38
|
-
|
|
36
|
+
|
|
37
|
+
const db = new AxioDB({ GUI: true }); // Dashboard at http://localhost:27018
|
|
39
38
|
const users = await (await db.createDB('AppDB')).createCollection('users');
|
|
40
39
|
|
|
41
40
|
await users.insert({ name: 'Alice', age: 30 });
|
|
@@ -43,32 +42,86 @@ const { data } = await users.query({ age: { $gt: 25 } }).Sort({ age: -1 }).Limit
|
|
|
43
42
|
console.log(data.documents);
|
|
44
43
|
```
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
No server to run, no `node-gyp`, no `electron-rebuild`. Requires Node.js โฅ20 (also verified on Bun v1.4.0).
|
|
46
|
+
|
|
47
|
+
## Why AxioDB
|
|
48
|
+
|
|
49
|
+
**The problem.** `better-sqlite3` needs compiled binaries and an `electron-rebuild` on every Electron update. Plain JSON files have no query layer, no cache, and no indexes. NeDB has been unmaintained since 2016.
|
|
50
|
+
|
|
51
|
+
**The solution.** A file-based document database with MongoDB-style queries and real ACID transactions, running on plain JavaScript objects โ pure JS, so it installs on any platform Node.js runs on.
|
|
52
|
+
|
|
53
|
+
## When to use it
|
|
54
|
+
|
|
55
|
+
**Great for** Electron apps, CLI tools, embedded and local-first software, and rapid prototyping.
|
|
56
|
+
|
|
57
|
+
**Sweet spot** 10Kโ500K documents in a local application that wants a real database without a database server.
|
|
58
|
+
|
|
59
|
+
**Not for** datasets beyond ~500K documents, hundreds of concurrent users, JOINs, or replication/sharding โ use PostgreSQL or MongoDB there. Measured limits, including per-document disk overhead and scan costs: [axiodb.in/limitations](https://axiodb.in/limitations).
|
|
60
|
+
|
|
61
|
+
## Features
|
|
62
|
+
|
|
63
|
+
**Core** โ the embedded engine
|
|
64
|
+
|
|
65
|
+
* **MongoDB-style queries** โ `{ age: { $gt: 25 } }`, 19 operators, plus `.hint()` and `.findByIds()`
|
|
66
|
+
* **ACID transactions** โ commit/rollback, savepoints, write-ahead log, crash recovery via `Transaction.recoverTransactions()`
|
|
67
|
+
* **Aggregation** โ 19 stages including `$lookup` joins, extensible through `OperatorRegistry`
|
|
68
|
+
* **Indexes** โ dual-write memory + disk index, served by a TTL-backed `IndexCache`
|
|
69
|
+
* **InMemoryCache** โ per-instance, invalidated on write, tunable via `{ Cache, minTTL, maxTTL, cacheClearUp }`
|
|
70
|
+
|
|
71
|
+
**Self-hostable server** โ the same engine, reachable remotely
|
|
72
|
+
|
|
73
|
+
* **Embedded** โ `new AxioDB({...})` in-process, no server, the default
|
|
74
|
+
* **HTTP API** โ port 27018, 41 documented endpoints, REST and OpenAPI
|
|
75
|
+
* **AxioDBCloud (TCP)** โ port 27019, 32 commands, optional `TCPAuth` and TLS
|
|
76
|
+
* **MCP server** โ port 27020, 43 tools for AI agents, bundled in the Docker image only
|
|
77
|
+
* **Docker** โ `theankansaha/axiodb`, every surface configurable by environment variable
|
|
78
|
+
|
|
79
|
+
**Clients and apps**
|
|
80
|
+
|
|
81
|
+
* **Dashboard** โ browser UI served by the HTTP surface, for browsing collections and running queries
|
|
82
|
+
* **AxioDBCloud client** โ the TypeScript client for the TCP surface, with connection pooling and auto-reconnect
|
|
83
|
+
* **CLI** โ Go binary for 12 platforms: interactive REPL, TLS, export/import
|
|
84
|
+
* **Desktop app** โ Electron GUI for Linux, macOS, and Windows
|
|
85
|
+
|
|
86
|
+
## Stability
|
|
87
|
+
|
|
88
|
+
AxioDB is **actively developed and not yet at 1.0**. Semantic versioning is followed, but treat minor releases with care and keep independent backups of your data directory.
|
|
89
|
+
|
|
90
|
+
| Tier | What it covers |
|
|
91
|
+
|---|---|
|
|
92
|
+
| **Stable** | Core CRUD, queries, indexes, transactions, aggregation, InMemoryCache |
|
|
93
|
+
| **Usable, evolving** | HTTP API, AxioDBCloud TCP, Dashboard, CLI, RBAC, MCP server |
|
|
94
|
+
| **Experimental** | Deno support, currently passing 9 of 12 engine tests โ worker threads are pending |
|
|
95
|
+
|
|
96
|
+
Data at rest is stored as plain JSON files, not encrypted. Encrypt the volume if that matters to you.
|
|
97
|
+
|
|
98
|
+
## Testing
|
|
47
99
|
|
|
48
|
-
**
|
|
100
|
+
The full suite is **329 tests across 14 suites**, all passing, each in an isolated child process. Benchmarked at 100,000 documents on an AMD Ryzen 5 5500U / Node v26.8.1:
|
|
49
101
|
|
|
50
|
-
|
|
102
|
+
| Operation | Time |
|
|
103
|
+
|---|---|
|
|
104
|
+
| Indexed query | 1โ2 ms |
|
|
105
|
+
| `documentId` lookup | <1 ms |
|
|
106
|
+
| Cache hit | <1 ms |
|
|
107
|
+
| Insert single | ~31 ms |
|
|
108
|
+
| Rollback | ~8 ms |
|
|
51
109
|
|
|
52
|
-
|
|
110
|
+
Full per-suite breakdown: [axiodb.in/performance](https://axiodb.in/performance).
|
|
53
111
|
|
|
54
|
-
|
|
112
|
+
Run it yourself with `npm test`.
|
|
55
113
|
|
|
56
114
|
## Installation
|
|
57
115
|
|
|
58
|
-
### npm
|
|
116
|
+
### npm โ the library
|
|
59
117
|
|
|
60
118
|
```bash
|
|
61
119
|
npm install axiodb
|
|
62
|
-
# Node.js โฅ20 (also verified on Bun v1.4.0)
|
|
63
120
|
```
|
|
64
121
|
|
|
65
|
-
### CLI
|
|
122
|
+
### CLI and Desktop GUI โ system-wide
|
|
66
123
|
|
|
67
|
-
AxioDB ships a CLI
|
|
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)
|
|
124
|
+
AxioDB ships a Go CLI and an Electron desktop app for Linux, macOS, and Windows. The installer shows a menu when run interactively โ **1)** CLI, **2)** GUI, **3)** both โ and defaults to CLI when piped.
|
|
72
125
|
|
|
73
126
|
```bash
|
|
74
127
|
# Linux / macOS
|
|
@@ -78,65 +131,43 @@ curl -fsSL https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/ins
|
|
|
78
131
|
irm https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.ps1 | iex
|
|
79
132
|
```
|
|
80
133
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
Set `CHOICE` before piping to select without the menu:
|
|
134
|
+
In scripts and CI, set `CHOICE` before piping to skip the menu:
|
|
84
135
|
|
|
85
136
|
| `CHOICE` | Installs |
|
|
86
137
|
|----------|----------|
|
|
87
|
-
| `1` | CLI only |
|
|
88
|
-
| `2` | GUI
|
|
138
|
+
| `1` | CLI only (also the default when piped) |
|
|
139
|
+
| `2` | Desktop GUI only |
|
|
89
140
|
| `3` | CLI + GUI |
|
|
90
141
|
|
|
91
142
|
```bash
|
|
92
|
-
#
|
|
143
|
+
# Desktop GUI โ Linux
|
|
93
144
|
curl -fsSL https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.sh | CHOICE=2 bash
|
|
94
145
|
|
|
95
|
-
#
|
|
146
|
+
# Desktop GUI โ Windows
|
|
96
147
|
$env:CHOICE=2; irm https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.ps1 | iex
|
|
97
148
|
|
|
98
|
-
#
|
|
149
|
+
# CLI + GUI โ Linux
|
|
99
150
|
curl -fsSL https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.sh | CHOICE=3 bash
|
|
100
151
|
|
|
101
|
-
#
|
|
152
|
+
# CLI + GUI โ Windows
|
|
102
153
|
$env:CHOICE=3; irm https://raw.githubusercontent.com/nexoral/AxioDB/main/cli/Scripts/install.ps1 | iex
|
|
103
154
|
```
|
|
104
155
|
|
|
105
|
-
|
|
106
|
-
[GitHub Releases](https://github.com/nexoral/AxioDB/releases).
|
|
107
|
-
|
|
108
|
-
#### Start a temporary local server
|
|
156
|
+
Prebuilt binaries are also on [GitHub Releases](https://github.com/nexoral/AxioDB/releases).
|
|
109
157
|
|
|
110
|
-
|
|
111
|
-
the published `axiodb` npm package into a temporary directory, keeps the server
|
|
112
|
-
attached to the terminal, and deletes its data when you press `Ctrl+C`.
|
|
113
|
-
Node.js โฅ20 and npm are required; the command offers platform-specific
|
|
114
|
-
installation help when they are missing.
|
|
158
|
+
### Docker
|
|
115
159
|
|
|
116
160
|
```bash
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
axiodb
|
|
120
|
-
axiodb
|
|
121
|
-
axiodb serve tcp-auth mypassword # same, seeding admin with mypassword
|
|
161
|
+
docker run -d --name axiodb-server \
|
|
162
|
+
-p 27018:27018 -p 27019:27019 \
|
|
163
|
+
-v axiodb-data:/app \
|
|
164
|
+
theankansaha/axiodb
|
|
122
165
|
```
|
|
123
166
|
|
|
124
|
-
|
|
125
|
-
and `full` presets seed the shared `admin` account; pass an optional password as
|
|
126
|
-
the second argument to choose it yourself and skip the forced first-login change.
|
|
127
|
-
Without one, `admin/admin` is seeded and TCP refuses it until the password is
|
|
128
|
-
changed through HTTP/GUI, since TCP has no password-change command. The `tcp`
|
|
129
|
-
preset creates no admin account and rejects the password argument.
|
|
130
|
-
|
|
131
|
-
When embedding, the same option is `AdminPassword` in the `AxioDB` constructor.
|
|
132
|
-
In Docker it is `AXIODB_ADMIN_PASSWORD`.
|
|
133
|
-
|
|
167
|
+
All surfaces default to on, with a seeded `admin` account. See [Docker/README.md](Docker/README.md) for every environment variable.
|
|
134
168
|
|
|
135
169
|
## Basic CRUD
|
|
136
170
|
|
|
137
|
-
CRUD means **Create, Read, Update, and Delete**. The following example creates a database and
|
|
138
|
-
collection, then demonstrates each basic operation:
|
|
139
|
-
|
|
140
171
|
```javascript
|
|
141
172
|
const { AxioDB } = require('axiodb');
|
|
142
173
|
|
|
@@ -144,51 +175,57 @@ const db = new AxioDB();
|
|
|
144
175
|
const database = await db.createDB('AppDB');
|
|
145
176
|
const users = await database.createCollection('users');
|
|
146
177
|
|
|
147
|
-
// Create
|
|
178
|
+
// Create โ documentId and updatedAt are added automatically.
|
|
148
179
|
const created = await users.insert({ name: 'Alice', email: 'alice@example.com', age: 30 });
|
|
149
180
|
const userId = created.data.documentId;
|
|
150
181
|
|
|
151
|
-
// Read
|
|
182
|
+
// Read โ the reader is chainable and lazy until .exec().
|
|
152
183
|
const result = await users.query({ age: { $gte: 18 } }).exec();
|
|
153
|
-
console.log(result.data.documents);
|
|
154
184
|
|
|
155
|
-
// Update
|
|
185
|
+
// Update โ the first document matching the query.
|
|
156
186
|
await users.update({ documentId: userId }).UpdateOne({ age: 31 });
|
|
157
187
|
|
|
158
|
-
// Delete
|
|
188
|
+
// Delete โ the first document matching the query.
|
|
159
189
|
await users.delete({ documentId: userId }).deleteOne();
|
|
160
190
|
```
|
|
161
191
|
|
|
162
|
-
Use `UpdateMany()`
|
|
163
|
-
Updates are flat merges; MongoDB update operators such as `$inc`, `$set`, and `$push` are not
|
|
164
|
-
supported.
|
|
192
|
+
Use `UpdateMany()` and `deleteMany()` to affect every match. Updates are flat merges โ MongoDB update operators like `$inc`, `$set`, and `$push` are not supported.
|
|
165
193
|
|
|
166
|
-
##
|
|
194
|
+
## Running a local server
|
|
195
|
+
|
|
196
|
+
`axiodb serve` starts a disposable AxioDB for development: it installs the published npm package into a temporary directory, keeps the server attached to your terminal, and deletes the data on `Ctrl+C`. Requires Node.js โฅ20 and npm.
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
axiodb serve http # HTTP API only
|
|
200
|
+
axiodb serve tcp # TCP, no authentication
|
|
201
|
+
axiodb serve tcp-auth mypassword # authenticated TCP
|
|
202
|
+
axiodb serve full # HTTP + authenticated TCP
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Ports are fixed at `27018` (HTTP) and `27019` (TCP). The optional password seeds the shared `admin` account; `tcp-auth` requires one, since it has no HTTP surface to rotate the password through. Embedding uses the `AdminPassword` constructor option, and Docker uses `AXIODB_ADMIN_PASSWORD`.
|
|
167
206
|
|
|
168
|
-
|
|
169
|
-
* **MongoDB-style queries** โ `{ age: { $gt: 25 } }`, 19 operators + `hint()` + `findByIds()`
|
|
170
|
-
* **ACID transactions** โ `savepoint`/`rollbackTo`/`WAL`, crashes recover via `Transaction.recoverTransactions()`
|
|
171
|
-
* **Aggregation** โ 19 stages, `$lookup` joins, `OperatorRegistry` custom ops
|
|
172
|
-
* **InMemoryCache + indexes** โ per-instance cache, dual-write, auto `IndexCache`
|
|
173
|
-
* **Configurable cache** โ `{ Cache, minTTL, maxTTL, cacheClearUp }` controls the per-instance InMemoryCache (default `5โ15m` randomized TTL, `Cache: false` disables it) โ [axiodb.in/api-reference](https://axiodb.in/api-reference)
|
|
174
|
-
* **Ports:** GUI `27018` ยท TCP `27019` `AxioDBCloud` ยท MCP `27020` Docker-only
|
|
207
|
+
## Documentation
|
|
175
208
|
|
|
176
|
-
|
|
209
|
+
| Page | Covers |
|
|
210
|
+
|---|---|
|
|
211
|
+
| [axiodb.in](https://axiodb.in/) | Documentation home |
|
|
212
|
+
| [Create a database](https://axiodb.in/create-database) | Constructor options, collections, indexes |
|
|
213
|
+
| [API reference](https://axiodb.in/api-reference) | Full method signatures and types |
|
|
214
|
+
| [AxioDBCloud](https://axiodb.in/cloud) | Remote TCP access, TLS, authentication |
|
|
215
|
+
| [Server API](https://axiodb.in/server-api) | The 41 HTTP endpoints |
|
|
216
|
+
| [CLI](https://axiodb.in/cli) | Go CLI reference |
|
|
217
|
+
| [Docker](https://axiodb.in/docker) | Image and environment variables |
|
|
218
|
+
| [Security](https://axiodb.in/security) | RBAC roles, password policy, rate limits |
|
|
219
|
+
| [MCP server](https://axiodb.in/mcp-server) | AI agent integration |
|
|
220
|
+
| [Limitations](https://axiodb.in/limitations) | Scope and measured limits |
|
|
221
|
+
| [Comparison](https://axiodb.in/comparison) | Against SQLite, JSON files, lowdb, nedb, better-sqlite3 |
|
|
177
222
|
|
|
178
|
-
|
|
179
|
-
* **CLI (Go)** โ `axiodb document insert/query` `--hint` `find-by-ids` `transaction begin/commit` `user change-password` (HTTP `27018` for management, TCP `27019` for data) โ [axiodb.in/cli](https://axiodb.in/cli)
|
|
180
|
-
* **Docker** โ `theankansaha/axiodb` `AXIODB_GUI/TCP/MCP` `27018/27019/27020` โ [axiodb.in/docker](https://axiodb.in/docker)
|
|
181
|
-
* **MCP Server** โ 43 tools `axiodb_login` โ `sessionId` + `withConfirmation` `Docker/mcp/tools/*.js` โ [axiodb.in/mcp-server](https://axiodb.in/mcp-server)
|
|
182
|
-
* **GUI + RBAC** โ `Super Admin/Admin/View`, `mustChangePassword`, `LoginRateLimiter` โ [axiodb.in/security](https://axiodb.in/security)
|
|
183
|
-
* **API & Types** โ `Document/src/data/serverApi.ts` 41 endpoints `openapi.json`, TS 6.0 strict โ [axiodb.in/api-reference](https://axiodb.in/api-reference) [axiodb.in/server-api](https://axiodb.in/server-api)
|
|
223
|
+
## Contributing, security & license
|
|
184
224
|
|
|
185
|
-
|
|
225
|
+
Contributions are welcome โ see [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
|
186
226
|
|
|
187
|
-
|
|
227
|
+
Security issues: report privately through [GitHub Security Advisories](https://github.com/nexoral/AxioDB/security/advisories/new). Policy details in [SECURITY.md](SECURITY.md).
|
|
188
228
|
|
|
189
|
-
|
|
190
|
-
* **Security:** see [SECURITY.md](SECURITY.md) โ `admin/admin` must change password, report via GitHub Security Advisories
|
|
191
|
-
* **License:** MIT โ [LICENSE](LICENSE)
|
|
192
|
-
* **Support:** โญ star, ๐ issues, ๐ก discussions โ [https://github.com/nexoral/AxioDB](https://github.com/nexoral/AxioDB) ยท [sponsor](https://github.com/sponsors/AnkanSaha)
|
|
229
|
+
Released under the [MIT License](LICENSE). Author: Ankan Saha.
|
|
193
230
|
|
|
194
|
-
|
|
231
|
+
Support the project with a โญ on [GitHub](https://github.com/nexoral/AxioDB) or through [GitHub Sponsors](https://github.com/sponsors/AnkanSaha).
|
|
@@ -10,6 +10,7 @@ import { InMemoryCache } from "../Memory/memory.operation";
|
|
|
10
10
|
* @param {string} options.CustomPath - Custom path for database storage. Defaults to current directory.
|
|
11
11
|
* @param {boolean} options.TCP - Enable/disable TCP server (port 27019). Defaults to false.
|
|
12
12
|
* @param {boolean} options.TCPAuth - Require username/password authentication (same RBAC users as the GUI) for TCP connections. Defaults to false.
|
|
13
|
+
* @param {string} options.AdminPassword - Password the admin account is seeded with when the config database is first created, clearing its forced password change so it can authenticate over TCP immediately. Defaults to the built-in admin/admin, which TCP rejects until rotated through the HTTP/GUI. Ignored once the users collection already exists.
|
|
13
14
|
* @param {boolean} options.Cache - Enable the built-in InMemoryCache shared across the whole instance. Defaults to true.
|
|
14
15
|
* @param {number} options.minTTL - Minimum cache entry lifetime in minutes. Defaults to 5.
|
|
15
16
|
* @param {number} options.maxTTL - Maximum cache entry lifetime in minutes. Defaults to 15.
|
|
@@ -41,6 +41,7 @@ const memory_operation_1 = require("../Memory/memory.operation");
|
|
|
41
41
|
* @param {string} options.CustomPath - Custom path for database storage. Defaults to current directory.
|
|
42
42
|
* @param {boolean} options.TCP - Enable/disable TCP server (port 27019). Defaults to false.
|
|
43
43
|
* @param {boolean} options.TCPAuth - Require username/password authentication (same RBAC users as the GUI) for TCP connections. Defaults to false.
|
|
44
|
+
* @param {string} options.AdminPassword - Password the admin account is seeded with when the config database is first created, clearing its forced password change so it can authenticate over TCP immediately. Defaults to the built-in admin/admin, which TCP rejects until rotated through the HTTP/GUI. Ignored once the users collection already exists.
|
|
44
45
|
* @param {boolean} options.Cache - Enable the built-in InMemoryCache shared across the whole instance. Defaults to true.
|
|
45
46
|
* @param {number} options.minTTL - Minimum cache entry lifetime in minutes. Defaults to 5.
|
|
46
47
|
* @param {number} options.maxTTL - Maximum cache entry lifetime in minutes. Defaults to 15.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiodb",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.17.1",
|
|
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",
|