Skip to content

Commit f166df1

Browse files
authored
doc: v3 beta.27 release (#524)
* doc: v3 beta.27 release * update
1 parent 8616368 commit f166df1

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

versioned_docs/version-3.x/faq.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ Currently only SQLite (with [better-sqlite3](https://github.com/WiseLibs/better-
1414

1515
## What JavaScript runtimes are supported?
1616

17-
Currently only Node.js is tested. Please voice your interest if you want support for other runtimes such as Bun or Deno.
17+
- Node.js: systematically tested.
18+
- Bun: passed basic end-to-end tests.
19+
- Vercel Edge Runtime: passed basic end-to-end tests.
20+
- Deno: not tested.

versioned_docs/version-3.x/recipe/databases/sqlite.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import PackageInstall from '../../_components/PackageInstall';
66

77
# SQLite
88

9-
## Installing driver
9+
## Node.js
10+
11+
### Installing driver
1012

1113
<PackageInstall dependencies={['better-sqlite3']} devDependencies={['@types/better-sqlite3']} />
1214

13-
## Creating ZenStackClient
15+
### Creating ZenStackClient
1416

1517
```ts
1618
import { schema } from './zenstack/schema';
@@ -22,3 +24,24 @@ const db = new ZenStackClient(schema, {
2224
dialect: new SqliteDialect({ database: new SQLite('./dev.db') }),
2325
});
2426
```
27+
28+
## Bun
29+
30+
### Installing driver
31+
32+
Bun is not compatible with `better-sqlite3`. You can use its builtin `bun:sqlite` module with the `kysely-bun-sqlite` Kysely community dialect.
33+
34+
<PackageInstall dependencies={['kysely-bun-sqlite']} />
35+
36+
### Creating ZenStackClient
37+
38+
```ts
39+
import { schema } from './zenstack/schema';
40+
import { Database } from 'bun:sqlite';
41+
import { ZenStackClient } from '@zenstackhq/orm';
42+
import { BunSqliteDialect } from 'kysely-bun-sqlite';
43+
44+
const db = new ZenStackClient(schema, {
45+
dialect: new BunSqliteDialect({ database: new Database('./dev.db') }),
46+
});
47+
```

versioned_docs/version-3.x/samples.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ A simple TypeScript application that demonstrates how to model a minimum blog ap
1818
https://github.com/zenstackhq/v3-sample-todo-nextjs
1919

2020
A multi-tenant Todo app built with Next.js, Auth.js, TanStack Query, and ZenStack v3.
21+
22+
## Rallly
23+
24+
https://github.com/zenstackhq/rallly
25+
26+
[Rallly](https://github.com/lukevella/rallly) is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier. This repo is a fork of the original Rallly repo, replaced Prisma with ZenStack v3.

0 commit comments

Comments
 (0)