Skip to content

Commit efd0c87

Browse files
NathanFlurryrivet-docs-sync[bot]
andauthored
docs(api): sync from rivet-dev/rivet@57cb026 (#117)
Co-authored-by: rivet-docs-sync[bot] <docs-sync@rivet.dev>
1 parent cca150e commit efd0c87

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { actor } from "rivetkit";
2+
import { db } from "rivetkit/db";
3+
4+
export const myActor = actor({
5+
db: db(),
6+
actions: {
7+
logCache: async (c) => {
8+
await c.db.execute("SELECT 1");
9+
const metrics = await c.db.nativeMetrics?.();
10+
if (metrics) {
11+
c.log.info({ msg: "SQLite cache", ...metrics });
12+
}
13+
},
14+
},
15+
});

‎vendor/api/examples/docs/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"@rivetkit/rivetkit-wasm": "workspace:*",
1717
"@rivetkit/supabase": "workspace:*",
1818
"@rivetkit/effect": "workspace:*",
19-
"effect": "4.0.0-beta.66",
20-
"@effect/platform-node": "4.0.0-beta.66",
19+
"effect": "4.0.0",
20+
"@effect/platform-node": "4.0.0",
2121
"@ai-sdk/openai": "^3.0.30",
2222
"ai": "^6.0.92",
2323
"hono": "^4.7.0",

0 commit comments

Comments
 (0)