drizzle-starbase
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

This is a small library designed to integrate StarbaseDB with the Drizzle ORM.

Usage

Install

npm install drizzle-starbase

Use

import { int, sqliteTable, text } from "drizzle-orm/sqlite-core";
import { drizzle } from "drizzle-orm/sqlite-proxy";
import { starbase } from "drizzle-starbase";

const db = drizzle(
  ...starbase("https://your-url-here.workers.dev", "api-token")
);

const user = sqliteTable("users", {
  id: int("id"),
  name: text("name"),
});

db.insert(user).values({ id: 1, name: "From StarbaseDB" }),

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.02latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.02

Package Sidebar

Install

npm i drizzle-starbase

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

14.3 kB

Total Files

11

Last publish

Collaborators

  • invisal