blackcat.js-database 1.0.5 → 1.0.7
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 +6 -1
- package/dist/{index.js → index.cjs} +465 -125
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +353 -50
- package/dist/index.d.ts +353 -50
- package/dist/index.mjs +464 -124
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -331,6 +331,8 @@ const db = new Database({
|
|
|
331
331
|
|
|
332
332
|
# JSON Driver (ví dụ)
|
|
333
333
|
|
|
334
|
+
Driver lưu dữ liệu trong file json.
|
|
335
|
+
|
|
334
336
|
```ts
|
|
335
337
|
import { Database, JSONDriver } from "blackcat.js-database";
|
|
336
338
|
|
|
@@ -344,6 +346,8 @@ const database = new Database({
|
|
|
344
346
|
|
|
345
347
|
# Mongo Driver (ví dụ)
|
|
346
348
|
|
|
349
|
+
Driver lưu dữ liệu trong mongoose.
|
|
350
|
+
|
|
347
351
|
```ts
|
|
348
352
|
import { Database, MongoDriver } from "blackcat.js-database";
|
|
349
353
|
|
|
@@ -369,6 +373,8 @@ const database = new Database({
|
|
|
369
373
|
|
|
370
374
|
# SQLite Driver (ví dụ)
|
|
371
375
|
|
|
376
|
+
Driver lưu dữ liệu trong SQLite.
|
|
377
|
+
|
|
372
378
|
```ts
|
|
373
379
|
import { Database, SQLiteDriver } from "blackcat.js-database";
|
|
374
380
|
|
|
@@ -382,7 +388,6 @@ const database = new Database({
|
|
|
382
388
|
---
|
|
383
389
|
|
|
384
390
|
|
|
385
|
-
|
|
386
391
|
# Tạo Custom Driver
|
|
387
392
|
|
|
388
393
|
Bạn có thể tạo driver riêng bằng cách implement `DatabaseDriver`.
|