Back to Kysely

Playground

site/docs/playground.mdx

0.28.17573 B
Original Source

Playground

@wirekang has created a playground for Kysely. You can use it to quickly test stuff out and for creating code examples for your issues, PRs and Discord messages.

import { Playground } from '../src/components/Playground'

<Playground code={const person = await db .selectFrom('person') .select(['id', 'first_name']) .where('id', '=', 1) .executeTakeFirst() } />

Codesandbox

We also have a minimal code sandbox example.