@usebridger/storage-sqlite 0.2.0 → 0.2.2
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 +27 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# @usebridger/storage-sqlite
|
|
2
|
+
|
|
3
|
+
Storage padrão do [Bridger](https://www.npmjs.com/package/@usebridger/core), sobre o SQLite que
|
|
4
|
+
vem no próprio Node (`node:sqlite`), sem dependência nativa.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npm install @usebridger/storage-sqlite
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
import { createBot } from '@usebridger/core';
|
|
12
|
+
import { sqlite } from '@usebridger/storage-sqlite';
|
|
13
|
+
import { baileys } from '@usebridger/transport-baileys';
|
|
14
|
+
|
|
15
|
+
const bot = createBot({
|
|
16
|
+
transport: baileys(),
|
|
17
|
+
storage: sqlite({ path: 'data/bot.sqlite' }), // dados dos plugins e credenciais do WhatsApp
|
|
18
|
+
plugins: [],
|
|
19
|
+
});
|
|
20
|
+
await bot.start();
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Requer Node 24 ou mais novo.
|
|
24
|
+
|
|
25
|
+
- [Documentação](https://github.com/murillous/usebridger/blob/main/packages/storage-sqlite/docs/README.md)
|
|
26
|
+
|
|
27
|
+
Licença [Apache-2.0](https://github.com/murillous/usebridger/blob/main/LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usebridger/storage-sqlite",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Storage do Bridger em SQLite (node:sqlite), sem dependência nativa.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@usebridger/core": "^0.
|
|
28
|
+
"@usebridger/core": "^0.3.0"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|