axiodb 1.4.3 → 1.5.4
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 +163 -166
- package/lib/Caching/cache.operation.d.ts +3 -1
- package/lib/Caching/cache.operation.js +11 -3
- package/lib/Caching/cache.operation.js.map +1 -1
- package/lib/Operation/Aggregation/Aggregation.Operation.js +3 -2
- package/lib/Operation/Aggregation/Aggregation.Operation.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,277 +1,274 @@
|
|
|
1
1
|
# AxioDB
|
|
2
2
|
|
|
3
|
-
AxioDB is a fast, lightweight, and scalable open-source DBMS designed for modern applications. It supports
|
|
3
|
+
AxioDB is a fast, lightweight, and scalable open-source DBMS designed for modern applications. It supports `.axiodb` file-based data storage, simple APIs, and secure data management, making it ideal for projects requiring efficient and flexible database solutions.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
AxioDB is specifically designed for small to medium-sized websites, blogs, and personal projects. While it provides excellent performance for these use cases, please note that it is currently optimized for smaller data loads rather than massive enterprise-level datasets. We are continuously working to improve performance and scalability in future updates.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **Chainable Query Methods:** Use familiar methods like `.find()`, `.skip()`, and `.limit()` for powerful query filtering.
|
|
9
|
-
- **Node.js Streams for Efficient Read/Write:** Seamlessly handle large datasets with Node.js streams to avoid performance bottlenecks.
|
|
10
|
-
- **Custom Data Storage:** Save and retrieve data directly from JSON files without needing a database server.
|
|
11
|
-
- **Flexible Indexing:** Implement indexing to speed up query performance.
|
|
12
|
-
- **Secure and Reliable:** Includes optional encryption to protect sensitive data stored in your JSON files.
|
|
13
|
-
- **Simple Setup and Lightweight:** No additional database setup required; simply install and start using.
|
|
7
|
+
---
|
|
14
8
|
|
|
15
|
-
##
|
|
9
|
+
## 🚀 Features
|
|
16
10
|
|
|
17
|
-
|
|
11
|
+
- **Schema Support:** Define schemas to structure your data for consistency and validation.
|
|
12
|
+
- **Chainable Query Methods:** Use methods like `.query()`, `.Sort()`, `.Limit()`, and `.Skip()` for powerful query filtering.
|
|
13
|
+
- **Node.js Streams for Efficiency:** Handle large datasets seamlessly with optimized read/write operations.
|
|
14
|
+
- **Encryption Support:** Secure sensitive data with optional encryption for collections.
|
|
15
|
+
- **Aggregation Pipelines:** Perform advanced data operations like `$match`, `$sort`, `$group`, and more.
|
|
16
|
+
- **Simple Setup:** No additional database server required—just install and start using.
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
npm install axiodb@latest --save
|
|
21
|
-
```
|
|
18
|
+
---
|
|
22
19
|
|
|
23
|
-
##
|
|
20
|
+
## 🔮 Future Plans
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
We're actively working to enhance AxioDB with several exciting features and improvements:
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
- **In-Memory Cache Strategy:** Implementing an efficient caching mechanism to significantly speed up query operations.
|
|
25
|
+
- **Performance Optimizations:** Continuous improvements to make data handling faster and more efficient.
|
|
26
|
+
- **Extended Query Capabilities:** Additional operators and more flexible querying options.
|
|
27
|
+
- **Improved Documentation:** More examples, tutorials, and API references.
|
|
28
|
+
- **Better TypeScript Support:** Enhanced type definitions for better developer experience.
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
const db = new AxioDB();
|
|
30
|
+
We invite all developer enthusiasts to contribute to making AxioDB more reliable and powerful. Your insights and contributions can help shape the future of this project!
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
db.createDB("myDatabase").then(async (database) => {
|
|
35
|
-
// Define a schema
|
|
36
|
-
const userSchema = {
|
|
37
|
-
name: SchemaTypes.string().required(),
|
|
38
|
-
age: SchemaTypes.number().required(),
|
|
39
|
-
};
|
|
32
|
+
---
|
|
40
33
|
|
|
41
|
-
|
|
42
|
-
const users = await database.createCollection("users", userSchema);
|
|
34
|
+
## 📦 Installation
|
|
43
35
|
|
|
44
|
-
|
|
45
|
-
users.insert({ name: "John Doe", age: 30 }).then((response) => {
|
|
46
|
-
console.log("Insert Response:", response);
|
|
47
|
-
});
|
|
36
|
+
Install AxioDB via npm:
|
|
48
37
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.query({ age: { $gt: 25 } })
|
|
52
|
-
.exac()
|
|
53
|
-
.then((response) => {
|
|
54
|
-
console.log("Query Response:", response);
|
|
55
|
-
});
|
|
56
|
-
});
|
|
38
|
+
```bash
|
|
39
|
+
npm install axiodb@latest --save
|
|
57
40
|
```
|
|
58
41
|
|
|
59
|
-
|
|
42
|
+
---
|
|
60
43
|
|
|
61
|
-
|
|
62
|
-
|
|
44
|
+
## 🛠️ Usage
|
|
45
|
+
|
|
46
|
+
### CommonJS Example
|
|
47
|
+
|
|
48
|
+
```javascript
|
|
49
|
+
const { AxioDB, SchemaTypes } = require("axiodb");
|
|
63
50
|
|
|
64
51
|
// Initialize AxioDB
|
|
65
52
|
const db = new AxioDB();
|
|
66
53
|
|
|
67
|
-
|
|
68
|
-
|
|
54
|
+
const main = async () => {
|
|
55
|
+
// Create a database
|
|
56
|
+
const database = await db.createDB("myDatabase");
|
|
57
|
+
|
|
69
58
|
// Define a schema
|
|
70
59
|
const userSchema = {
|
|
71
60
|
name: SchemaTypes.string().required(),
|
|
72
61
|
age: SchemaTypes.number().required(),
|
|
73
62
|
};
|
|
74
63
|
|
|
75
|
-
// Create a
|
|
64
|
+
// Create a collection with schema
|
|
76
65
|
const users = await database.createCollection("users", userSchema);
|
|
77
66
|
|
|
78
|
-
// Insert
|
|
79
|
-
users.insert({ name: "John Doe", age: 30 })
|
|
80
|
-
console.log("Insert Response:", response);
|
|
81
|
-
});
|
|
67
|
+
// Insert data
|
|
68
|
+
await users.insert({ name: "John Doe", age: 30 });
|
|
82
69
|
|
|
83
|
-
// Query
|
|
84
|
-
users
|
|
70
|
+
// Query data
|
|
71
|
+
const result = await users
|
|
85
72
|
.query({ age: { $gt: 25 } })
|
|
86
|
-
.
|
|
87
|
-
.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
73
|
+
.Limit(10)
|
|
74
|
+
.exec();
|
|
75
|
+
console.log("Query Result:", result);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
main();
|
|
91
79
|
```
|
|
92
80
|
|
|
93
|
-
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 🌟 Advanced Features
|
|
94
84
|
|
|
95
|
-
|
|
85
|
+
### 1. **Creating Multiple Databases and Collections**
|
|
96
86
|
|
|
97
|
-
```
|
|
87
|
+
```javascript
|
|
98
88
|
const { AxioDB, SchemaTypes } = require("axiodb");
|
|
99
89
|
|
|
100
90
|
const db = new AxioDB();
|
|
101
91
|
|
|
102
|
-
const
|
|
92
|
+
const setup = async () => {
|
|
103
93
|
const schema = {
|
|
104
94
|
name: SchemaTypes.string().required().max(15),
|
|
105
95
|
age: SchemaTypes.number().required().min(18),
|
|
106
96
|
};
|
|
107
97
|
|
|
108
98
|
const DB1 = await db.createDB("DB1");
|
|
109
|
-
const
|
|
110
|
-
const collection = await DB1.createCollection(
|
|
99
|
+
const collection1 = await DB1.createCollection(
|
|
111
100
|
"collection1",
|
|
112
101
|
schema,
|
|
113
102
|
true,
|
|
114
|
-
"
|
|
103
|
+
"secretKey",
|
|
115
104
|
);
|
|
116
|
-
const collection2 = await DB1.createCollection("collection2", schema, false);
|
|
117
105
|
|
|
118
106
|
// Insert data
|
|
119
107
|
for (let i = 0; i < 300; i++) {
|
|
120
|
-
await
|
|
121
|
-
.insert({
|
|
122
|
-
name: `Ankan${i}`,
|
|
123
|
-
age: i + 18,
|
|
124
|
-
})
|
|
125
|
-
.then((data) => {
|
|
126
|
-
console.log(data);
|
|
127
|
-
collection
|
|
128
|
-
.insert({
|
|
129
|
-
name: `Saha${i}`,
|
|
130
|
-
age: i + 18,
|
|
131
|
-
})
|
|
132
|
-
.then(console.log);
|
|
133
|
-
});
|
|
108
|
+
await collection1.insert({ name: `User${i}`, age: i + 18 });
|
|
134
109
|
}
|
|
135
110
|
|
|
136
111
|
// Query data
|
|
137
|
-
|
|
112
|
+
const results = await collection1
|
|
138
113
|
.query({})
|
|
139
114
|
.Sort({ age: -1 })
|
|
140
|
-
.Skip(2)
|
|
141
115
|
.Limit(10)
|
|
142
|
-
.exec()
|
|
143
|
-
|
|
116
|
+
.exec();
|
|
117
|
+
console.log("Query Results:", results);
|
|
144
118
|
|
|
145
119
|
// Delete collection
|
|
146
|
-
DB1.deleteCollection("collection1")
|
|
147
|
-
|
|
148
|
-
// Get collection info
|
|
149
|
-
DB1.getCollectionInfo().then(console.log);
|
|
150
|
-
|
|
151
|
-
// Delete databases
|
|
152
|
-
db.deleteDatabase("DB2").then(console.log);
|
|
153
|
-
db.deleteDatabase("DB1").then(console.log);
|
|
120
|
+
await DB1.deleteCollection("collection1");
|
|
154
121
|
};
|
|
155
122
|
|
|
156
|
-
|
|
123
|
+
setup();
|
|
157
124
|
```
|
|
158
125
|
|
|
159
|
-
|
|
126
|
+
---
|
|
160
127
|
|
|
161
|
-
|
|
128
|
+
### 2. **Aggregation Pipelines**
|
|
162
129
|
|
|
163
|
-
|
|
130
|
+
Perform advanced operations like filtering, sorting, grouping, and projecting data.
|
|
164
131
|
|
|
165
|
-
```
|
|
166
|
-
|
|
132
|
+
```javascript
|
|
133
|
+
const aggregationResult = await collection1
|
|
134
|
+
.aggregate([
|
|
135
|
+
{ $match: { name: { $regex: "User" } } },
|
|
136
|
+
{ $project: { name: 1, age: 1 } },
|
|
137
|
+
{ $sort: { age: -1 } },
|
|
138
|
+
{ $limit: 10 },
|
|
139
|
+
])
|
|
140
|
+
.exec();
|
|
167
141
|
|
|
168
|
-
|
|
169
|
-
|
|
142
|
+
console.log("Aggregation Result:", aggregationResult);
|
|
143
|
+
```
|
|
170
144
|
|
|
171
|
-
|
|
172
|
-
db.createDB("myDatabase").then(async (database) => {
|
|
173
|
-
// Define a schema
|
|
174
|
-
const userSchema = {
|
|
175
|
-
name: SchemaTypes.string().required(),
|
|
176
|
-
age: SchemaTypes.number().required(),
|
|
177
|
-
};
|
|
145
|
+
---
|
|
178
146
|
|
|
179
|
-
|
|
180
|
-
const users = await database.createCollection(
|
|
181
|
-
"users",
|
|
182
|
-
userSchema,
|
|
183
|
-
true,
|
|
184
|
-
"mySecretKey",
|
|
185
|
-
);
|
|
147
|
+
### 3. **Encryption**
|
|
186
148
|
|
|
187
|
-
|
|
188
|
-
users.insert({ name: "John Doe", age: 30 }).then((response) => {
|
|
189
|
-
console.log("Insert Response:", response);
|
|
190
|
-
});
|
|
149
|
+
Enable encryption for sensitive data by providing a secret key during collection creation.
|
|
191
150
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
151
|
+
```javascript
|
|
152
|
+
const encryptedCollection = await DB1.createCollection(
|
|
153
|
+
"secureCollection",
|
|
154
|
+
schema,
|
|
155
|
+
true,
|
|
156
|
+
"mySecretKey",
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
// Insert encrypted data
|
|
160
|
+
await encryptedCollection.insert({ name: "Encrypted User", age: 25 });
|
|
161
|
+
|
|
162
|
+
// Query encrypted data
|
|
163
|
+
const encryptedResult = await encryptedCollection.query({ age: 25 }).exec();
|
|
164
|
+
console.log("Encrypted Query Result:", encryptedResult);
|
|
200
165
|
```
|
|
201
166
|
|
|
202
|
-
|
|
167
|
+
---
|
|
203
168
|
|
|
204
|
-
|
|
169
|
+
### 4. **Update and Delete Operations**
|
|
205
170
|
|
|
206
|
-
|
|
207
|
-
2. **Performance Bottlenecks:** Handling large datasets efficiently was often a challenge, especially with traditional databases.
|
|
208
|
-
3. **Flexibility:** I needed a flexible solution that could easily adapt to different project requirements without extensive modifications.
|
|
209
|
-
4. **Security:** Ensuring data security and encryption was crucial, but existing solutions often lacked easy-to-implement encryption features.
|
|
171
|
+
#### Update Documents
|
|
210
172
|
|
|
211
|
-
|
|
173
|
+
```javascript
|
|
174
|
+
// Update a single document
|
|
175
|
+
await collection1
|
|
176
|
+
.update({ age: 20 })
|
|
177
|
+
.UpdateOne({ name: "Updated User", gender: "Male" });
|
|
212
178
|
|
|
213
|
-
|
|
179
|
+
// Update multiple documents
|
|
180
|
+
await collection1
|
|
181
|
+
.update({ name: { $regex: "User" } })
|
|
182
|
+
.UpdateMany({ isActive: true });
|
|
183
|
+
```
|
|
214
184
|
|
|
215
|
-
|
|
185
|
+
#### Delete Documents
|
|
216
186
|
|
|
217
|
-
|
|
187
|
+
```javascript
|
|
188
|
+
// Delete a single document
|
|
189
|
+
await collection1.delete({ name: "User1" }).deleteOne();
|
|
218
190
|
|
|
219
|
-
|
|
191
|
+
// Delete multiple documents
|
|
192
|
+
await collection1.delete({ age: { $lt: 25 } }).deleteMany();
|
|
193
|
+
```
|
|
220
194
|
|
|
221
|
-
|
|
195
|
+
---
|
|
222
196
|
|
|
223
|
-
|
|
197
|
+
## 📖 API Reference
|
|
224
198
|
|
|
225
|
-
|
|
226
|
-
- Deletes the specified database.
|
|
199
|
+
### AxioDB
|
|
227
200
|
|
|
228
|
-
|
|
201
|
+
- **`createDB(dbName: string): Promise<Database>`**
|
|
202
|
+
Creates a new database.
|
|
229
203
|
|
|
230
|
-
-
|
|
204
|
+
- **`deleteDatabase(dbName: string): Promise<SuccessInterface | ErrorInterface>`**
|
|
205
|
+
Deletes a database.
|
|
231
206
|
|
|
232
|
-
|
|
207
|
+
### Database
|
|
233
208
|
|
|
234
|
-
-
|
|
209
|
+
- **`createCollection(name: string, schema: object, crypto?: boolean, key?: string): Promise<Collection>`**
|
|
210
|
+
Creates a collection with an optional schema and encryption.
|
|
235
211
|
|
|
236
|
-
|
|
212
|
+
- **`deleteCollection(name: string): Promise<SuccessInterface | ErrorInterface>`**
|
|
213
|
+
Deletes a collection.
|
|
237
214
|
|
|
238
|
-
-
|
|
239
|
-
|
|
215
|
+
- **`getCollectionInfo(): Promise<SuccessInterface>`**
|
|
216
|
+
Retrieves information about all collections.
|
|
240
217
|
|
|
241
218
|
### Collection
|
|
242
219
|
|
|
243
|
-
-
|
|
220
|
+
- **`insert(data: object): Promise<SuccessInterface | ErrorInterface>`**
|
|
221
|
+
Inserts a document into the collection.
|
|
244
222
|
|
|
245
|
-
|
|
223
|
+
- **`query(query: object): Reader`**
|
|
224
|
+
Queries documents in the collection.
|
|
246
225
|
|
|
247
|
-
-
|
|
248
|
-
|
|
226
|
+
- **`aggregate(pipeline: object[]): Aggregation`**
|
|
227
|
+
Performs aggregation operations.
|
|
249
228
|
|
|
250
229
|
### Reader
|
|
251
230
|
|
|
252
|
-
-
|
|
231
|
+
- **`Limit(limit: number): Reader`**
|
|
232
|
+
Sets a limit on the number of documents.
|
|
233
|
+
|
|
234
|
+
- **`Skip(skip: number): Reader`**
|
|
235
|
+
Skips a number of documents.
|
|
236
|
+
|
|
237
|
+
- **`Sort(sort: object): Reader`**
|
|
238
|
+
Sorts the query results.
|
|
239
|
+
|
|
240
|
+
- **`exec(): Promise<SuccessInterface | ErrorInterface>`**
|
|
241
|
+
Executes the query.
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## 🔒 Security
|
|
246
|
+
|
|
247
|
+
AxioDB prioritizes data security with features like:
|
|
248
|
+
|
|
249
|
+
- Optional encryption for collections.
|
|
250
|
+
- Secure `.axiodb` file-based storage.
|
|
253
251
|
|
|
254
|
-
|
|
252
|
+
For vulnerabilities, please refer to the [SECURITY.md](SECURITY.md) file.
|
|
255
253
|
|
|
256
|
-
|
|
254
|
+
---
|
|
257
255
|
|
|
258
|
-
|
|
256
|
+
## 🤝 Contributing
|
|
259
257
|
|
|
260
|
-
-
|
|
258
|
+
As the sole developer working on this project while maintaining a full-time software engineering career, it can be challenging to dedicate as much time as I'd like to AxioDB's development. If you find this project valuable and believe it solves problems for you, your contributions would be greatly appreciated.
|
|
261
259
|
|
|
262
|
-
|
|
260
|
+
Whether it's code improvements, documentation updates, bug reports, or feature suggestions - every contribution helps make this project better for everyone. Please read the [CONTRIBUTING.md](CONTRIBUTING.md) file for guidelines on how to get started.
|
|
263
261
|
|
|
264
|
-
|
|
265
|
-
- Sets the sort order for the query.
|
|
262
|
+
Together, we can build something remarkable that serves the needs of the developer community!
|
|
266
263
|
|
|
267
|
-
|
|
264
|
+
---
|
|
268
265
|
|
|
269
|
-
|
|
266
|
+
## 📜 License
|
|
270
267
|
|
|
271
|
-
|
|
268
|
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
|
272
269
|
|
|
273
|
-
|
|
270
|
+
---
|
|
274
271
|
|
|
275
|
-
## Acknowledgments
|
|
272
|
+
## 🙌 Acknowledgments
|
|
276
273
|
|
|
277
|
-
|
|
274
|
+
Special thanks to all contributors and supporters of AxioDB. Your feedback and contributions make this project better!
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
export default class InMemoryCache {
|
|
9
9
|
private readonly ttl;
|
|
10
10
|
private cacheObject;
|
|
11
|
+
private tempSearchQuery;
|
|
11
12
|
/**
|
|
12
13
|
* Creates a new instance of the cache operation class
|
|
13
|
-
* @param TTL - Time to live in seconds for cache entries. Defaults to
|
|
14
|
+
* @param TTL - Time to live in seconds for cache entries. Defaults to 86400 seconds (24 hours)
|
|
14
15
|
*/
|
|
15
16
|
constructor(TTL?: string | number);
|
|
16
17
|
/**
|
|
@@ -33,4 +34,5 @@ export default class InMemoryCache {
|
|
|
33
34
|
* @returns A Promise that resolves to the cached value if found and not expired, null otherwise
|
|
34
35
|
*/
|
|
35
36
|
getCache(key: string): Promise<any>;
|
|
37
|
+
private autoResetCache;
|
|
36
38
|
}
|
|
@@ -20,9 +20,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
20
20
|
class InMemoryCache {
|
|
21
21
|
/**
|
|
22
22
|
* Creates a new instance of the cache operation class
|
|
23
|
-
* @param TTL - Time to live in seconds for cache entries. Defaults to
|
|
23
|
+
* @param TTL - Time to live in seconds for cache entries. Defaults to 86400 seconds (24 hours)
|
|
24
24
|
*/
|
|
25
|
-
constructor(TTL =
|
|
25
|
+
constructor(TTL = 86400) {
|
|
26
|
+
this.tempSearchQuery = [];
|
|
26
27
|
this.ttl = typeof TTL === "string" ? parseInt(TTL) : TTL;
|
|
27
28
|
this.cacheObject = {};
|
|
28
29
|
}
|
|
@@ -43,7 +44,7 @@ class InMemoryCache {
|
|
|
43
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
45
|
this.cacheObject[key] = {
|
|
45
46
|
value: value,
|
|
46
|
-
expiry: Date.now() + this.ttl * 1000,
|
|
47
|
+
expiry: Date.now() + parseInt(String(this.ttl)) * 1000,
|
|
47
48
|
};
|
|
48
49
|
});
|
|
49
50
|
}
|
|
@@ -65,6 +66,13 @@ class InMemoryCache {
|
|
|
65
66
|
return cacheItem.value;
|
|
66
67
|
});
|
|
67
68
|
}
|
|
69
|
+
autoResetCache() {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
setInterval(() => {
|
|
72
|
+
this.cacheObject = {};
|
|
73
|
+
}, parseInt(String(this.ttl)));
|
|
74
|
+
});
|
|
75
|
+
}
|
|
68
76
|
}
|
|
69
77
|
exports.default = InMemoryCache;
|
|
70
78
|
//# sourceMappingURL=cache.operation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.operation.js","sourceRoot":"","sources":["../../source/Caching/cache.operation.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,uDAAuD;AACvD;;;;;;IAMI;AACJ,MAAqB,aAAa;IAKhC;;;OAGG;IACH,YAAY,MAAuB,EAAE;
|
|
1
|
+
{"version":3,"file":"cache.operation.js","sourceRoot":"","sources":["../../source/Caching/cache.operation.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,uDAAuD;AACvD;;;;;;IAMI;AACJ,MAAqB,aAAa;IAKhC;;;OAGG;IACH,YAAY,MAAuB,KAAK;QALhC,oBAAe,GAAU,EAAE,CAAC;QAMlC,IAAI,CAAC,GAAG,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QACzD,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;IAED;;;;;;;;;;;;OAYG;IACU,QAAQ,CAAC,GAAW,EAAE,KAAU;;YAC3C,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG;gBACtB,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI;aACvD,CAAC;QACJ,CAAC;KAAA;IAED;;;;OAIG;IACU,QAAQ,CAAC,GAAW;;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACxC,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,IAAI,CAAC;YACd,CAAC;YACD,IAAI,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;gBAClC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;gBAC7B,OAAO,IAAI,CAAC;YACd,CAAC;YACD,OAAO,SAAS,CAAC,KAAK,CAAC;QACzB,CAAC;KAAA;IAEa,cAAc;;YAC1B,WAAW,CACT,GAAG,EAAE;gBACH,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;YACxB,CAAC,EACD,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAC3B,CAAC;QACJ,CAAC;KAAA;CACF;AA3DD,gCA2DC"}
|
|
@@ -17,6 +17,7 @@ const Crypto_helper_1 = require("../../Helper/Crypto.helper");
|
|
|
17
17
|
const FolderManager_1 = __importDefault(require("../../Storage/FolderManager"));
|
|
18
18
|
const FileManager_1 = __importDefault(require("../../Storage/FileManager"));
|
|
19
19
|
const Converter_helper_1 = __importDefault(require("../../Helper/Converter.helper"));
|
|
20
|
+
const outers_1 = require("outers");
|
|
20
21
|
/**
|
|
21
22
|
* Class that performs aggregation operations on data.
|
|
22
23
|
*
|
|
@@ -67,7 +68,7 @@ class Aggregation {
|
|
|
67
68
|
// Load all buffer raw data from the specified directory
|
|
68
69
|
yield this.LoadAllBufferRawData().then((response) => {
|
|
69
70
|
if ("data" in response) {
|
|
70
|
-
|
|
71
|
+
outers_1.Console.green("Data Loaded Successfully for Aggregation");
|
|
71
72
|
}
|
|
72
73
|
});
|
|
73
74
|
let result = [...this.AllData];
|
|
@@ -94,7 +95,7 @@ class Aggregation {
|
|
|
94
95
|
return regex.test(itemValue);
|
|
95
96
|
}
|
|
96
97
|
catch (error) {
|
|
97
|
-
|
|
98
|
+
outers_1.Console.red(`Invalid regex: ${regexPattern} with options: ${regexOptions}`, error);
|
|
98
99
|
return false;
|
|
99
100
|
}
|
|
100
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Aggregation.Operation.js","sourceRoot":"","sources":["../../../source/Operation/Aggregation/Aggregation.Operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mFAA0D;AAC1D,8DAA0D;AAK1D,gFAAwD;AACxD,4EAAoD;AACpD,qFAAsD;
|
|
1
|
+
{"version":3,"file":"Aggregation.Operation.js","sourceRoot":"","sources":["../../../source/Operation/Aggregation/Aggregation.Operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mFAA0D;AAC1D,8DAA0D;AAK1D,gFAAwD;AACxD,4EAAoD;AACpD,qFAAsD;AACtD,mCAAiC;AAejC;;;;;;;;GAQG;AACH,MAAqB,WAAW;IAY9B,YACE,cAAsB,EACtB,IAAY,EACZ,QAAwB,EACxB,cAAuB,KAAK,EAC5B,aAAsB;QAhBxB,6BAA6B;QACrB,YAAO,GAAU,EAAE,CAAC;QAiB1B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAA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AM,CAAC;wCACN,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAC9B,wBAAwB,aAAa,CAAC,CAAC,CAAC,EAAE,CAC3C,CAAC;oCACJ,CAAC;gCACH,CAAC;gCAED,6CAA6C;gCAC7C,MAAM,YAAY,GAAG,MAAM,IAAI,uBAAa,EAAE,CAAC,aAAa,CAC1D,IAAI,CAAC,IAAI,CACV,CAAC;gCACF,IAAI,MAAM,IAAI,YAAY,EAAE,CAAC;oCAC3B,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gCACnD,CAAC;qCAAM,CAAC;oCACN,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAC9B,6BAA6B,IAAI,CAAC,IAAI,EAAE,CACzC,CAAC;gCACJ,CAAC;4BACH,CAAC;4BACD,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAC9B,6BAA6B,IAAI,CAAC,IAAI,EAAE,CACzC,CAAC;wBACJ,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAC9B,+BAA+B,IAAI,CAAC,IAAI,EAAE,CAC3C,CAAC;wBACJ,CAAC;oBACH,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;gBAC7C,CAAC;YACH,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC;KAAA;CACF;AAxUD,8BAwUC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiodb",
|
|
3
|
-
"version": "1.4
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "A fast, lightweight, and scalable open-source DBMS for modern apps. Supports JSON-based data storage, simple APIs, and secure data management. Ideal for projects needing efficient and flexible database solutions.",
|
|
5
5
|
"main": "./lib/config/DB.js",
|
|
6
6
|
"types": "./lib/config/DB.d.ts",
|