Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Node.js, Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score82%
Downloads12/wk
Publisheda year ago (0.0.14)

PG-Lite Drizzle

This is a simple package to integrate drizzle with pglite, and electric.

Getting Started

Install

npx jsr add @makisuo/pglite-drizzle

Usage

import { createDrizzle } from "@makisuo/pglite-drizzle"

export const { useDrizzleLive, useDrizzleLiveIncremental } = createDrizzle({ schema })
import { useDrizzleLive } from "./drizzle-client.ts"

const { data } = useDrizzleLive((db) =>
        db.query.accounts.findMany({
            with: {
                institution: true,
            },
        }),
)
Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@makisuo/pglite-drizzle

Import symbol

import * as pglite_drizzle from "@makisuo/pglite-drizzle";
or

Import directly with a jsr specifier

import * as pglite_drizzle from "jsr:@makisuo/pglite-drizzle";

Add Package

pnpm i jsr:@makisuo/pglite-drizzle
or (using pnpm 10.8 or older)
pnpm dlx jsr add @makisuo/pglite-drizzle

Import symbol

import * as pglite_drizzle from "@makisuo/pglite-drizzle";

Add Package

yarn add jsr:@makisuo/pglite-drizzle
or (using Yarn 4.8 or older)
yarn dlx jsr add @makisuo/pglite-drizzle

Import symbol

import * as pglite_drizzle from "@makisuo/pglite-drizzle";

Add Package

vlt install jsr:@makisuo/pglite-drizzle

Import symbol

import * as pglite_drizzle from "@makisuo/pglite-drizzle";

Add Package

npx jsr add @makisuo/pglite-drizzle

Import symbol

import * as pglite_drizzle from "@makisuo/pglite-drizzle";

Add Package

bunx jsr add @makisuo/pglite-drizzle

Import symbol

import * as pglite_drizzle from "@makisuo/pglite-drizzle";