Skip to content

docs: sv.add Drizzle ORM options for client #1217

Description

@hyunbinseo

Turns out this is wrong:

await sv.add({
  cwd,
  addons: {
    drizzle: sv.officialAddons.drizzle,
  },
  options: {
    drizzle: { database: "sqlite", sqlite: "client-sqlite3" },
  },
  packageManager: "pnpm",
});

This is the fix:

- drizzle: { database: "sqlite", client: "better-sqlite3" },
+ drizzle: { database: "sqlite", sqlite: "better-sqlite3" },

I've been using a client key to match the CLI script:

npx sv add drizzle="database:postgresql+client:postgres.js"

I did name this as a docs issue, but would prefer the API to match CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions