You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many examples, sql which does not exist is imported from 'db0'
bindingName in the example of PostgreSQL does not exist in the option
- import { createDatabase, sql } from "db0";+ import { createDatabase } from "db0";
import postgresql from "db0/connectors/postgresql";
const db = createDatabase(
postgresql({
- bindingName: "DB",
}),
);
drizzle can only be imported from db0/integrations/drizzle/index instead of db0/integrations/drizzle stated in the docs, maybe an issue of exports in package.json (moduleResolution of my project is bundler which is the default in nuxt)?
import { createDatabase } from "db0";
import sqlite from "db0/connectors/better-sqlite3";
- import { drizzle } from "db0/integrations/drizzle";+ import { drizzle } from "db0/integrations/drizzle/index";
import { sqliteTable, text, numeric } from "drizzle-orm/sqlite-core";
// Initialize DB instance
// You can use any other available connector
const db = createDatabase(sqlite({}));
Describe the change
version: db0 v0.1.3
sql
which does not exist is imported from 'db0'bindingName
in the example of PostgreSQL does not exist in the optiondb0/integrations/drizzle/index
instead ofdb0/integrations/drizzle
stated in the docs, maybe an issue ofexports
inpackage.json
(moduleResolution
of my project isbundler
which is the default in nuxt)?URLs
https://db0.unjs.io/connectors/bun
https://db0.unjs.io/connectors/cloudflare
https://db0.unjs.io/connectors/libsql
https://db0.unjs.io/connectors/sqlite
https://db0.unjs.io/connectors/vercel
https://db0.unjs.io/connectors/postgresql
https://db0.unjs.io/integrations/drizzle
Additional information
The text was updated successfully, but these errors were encountered: