@absurd-sqlite/bun-worker 0.1.0-alpha.0 → 0.2.0-alpha.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/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5458 -0
- package/dist/sqlite.d.ts +12 -0
- package/dist/sqlite.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Absurd } from "absurd-sdk";
|
|
2
|
+
/**
|
|
3
|
+
* Register tasks and perform any one-time setup before the worker starts.
|
|
4
|
+
*/
|
|
5
|
+
export type SetupFunction = (absurd: Absurd) => void | Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
* Boots a worker using Bun's SQLite driver and Absurd's task engine.
|
|
8
|
+
*
|
|
9
|
+
* Requires:
|
|
10
|
+
* - ABSURD_DATABASE_PATH: SQLite database file path.
|
|
11
|
+
* - ABSURD_DATABASE_EXTENSION_PATH: Absurd-SQLite extension path (libabsurd.*).
|
|
12
|
+
*/
|
|
13
|
+
export default function run(setupFunction: SetupFunction): Promise<void>;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAKpC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAErE;;;;;;GAMG;AACH,wBAA8B,GAAG,CAC/B,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,IAAI,CAAC,CA2Cf"}
|