@surveilr/bootstrap-sql 0.0.1 → 0.0.3
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 +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @surveilr/bootstrap-sql
|
|
2
2
|
|
|
3
3
|
Drizzle ORM schema for the RSSD (Resource Surveillance State Database) system.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install @surveilr/bootstrap-sql better-sqlite3 drizzle-orm
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Initialization
|
|
@@ -23,7 +23,7 @@ surveilr ingest files -d rssd.db
|
|
|
23
23
|
```typescript
|
|
24
24
|
import { drizzle } from "drizzle-orm/better-sqlite3";
|
|
25
25
|
import Database from "better-sqlite3";
|
|
26
|
-
import * as schema from "
|
|
26
|
+
import * as schema from "@surveilr/bootstrap-sql";
|
|
27
27
|
|
|
28
28
|
const sqlite = new Database("rssd.db");
|
|
29
29
|
const db = drizzle(sqlite, { schema });
|