@wxn0brp/db-benchmark 0.20261124.1829 → 0.20261125.1743

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 CHANGED
@@ -7,12 +7,26 @@ See [Page](https://wxn0brp.github.io/ValtheraDB-benchmark) for details and visua
7
7
 
8
8
  ## Local benchmark
9
9
 
10
+ ### Install
11
+
12
+ Globally, to get the `valthera-bench` command:
13
+
14
+ ```bash
15
+ bun add -g @wxn0brp/db-benchmark
16
+ # or
17
+ npm install -g @wxn0brp/db-benchmark
18
+ ```
19
+ ### Usage
20
+
10
21
  Run the benchmark against an adapter straight from the terminal:
11
22
 
12
23
  ```bash
13
24
  valthera-bench [adapter] [options]
14
25
  ```
15
26
 
27
+ `adapter` is a path to a module whose default export is a factory returning a
28
+ ValtheraDB adapter (default: `./valthera-e2e/index.ts`).
29
+
16
30
  Options:
17
31
 
18
32
  | Option | Description |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxn0brp/db-benchmark",
3
- "version": "0.20261124.1829",
3
+ "version": "0.20261125.1743",
4
4
  "main": "dist/index.js",
5
5
  "description": "",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "typescript": "^7"
30
30
  },
31
31
  "dependencies": {
32
- "@wxn0brp/db-core": "^0.12.2",
33
- "@wxn0brp/db-resolver": "^0.120.0"
32
+ "@wxn0brp/db-core": "^0.13.0",
33
+ "@wxn0brp/db-resolver": "^0.130.1"
34
34
  }
35
35
  }
package/src/utils.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ActionsBaseInterface } from "@wxn0brp/db-core/types/action";
1
+ import { AdapterBaseInterface } from "@wxn0brp/db-core/types/adapter";
2
2
  import { existsSync, readFileSync, writeFileSync } from "fs";
3
3
  import { resolve } from "path";
4
4
  import { type BenchResult } from "./run";
@@ -15,7 +15,7 @@ process.on("unhandledRejection", reason => {
15
15
 
16
16
  export async function loadCustomSetup(
17
17
  adapterName: string,
18
- adapter: ActionsBaseInterface,
18
+ adapter: AdapterBaseInterface,
19
19
  ): Promise<() => Promise<void>> {
20
20
  const setupPath = resolve(import.meta.dirname, "custom", `${adapterName}.js`);
21
21
  let onAfterAdd = async () => {};