Skip to content

"Unknown driver" when trying to use sqlite3 #43

Open
@marcusta

Description

@marcusta

Using the following yaml config

version: "2"
plugins:

If I switch to mysql it works to generate.

I get the following error

➜ sqlc generate
package ts
error generating code: Error while running JS: Uncaught Error: unknown driver: better-sqlite3
at createNodeGenerator (function.mjs:190790)
at codegen (function.mjs:190799)
at (function.mjs:190776)

I have tried nodejs 20.9 and 20.18 and am running in zsh on mac (not bun). Installed sqlc using brew yesterday

I have better-sqlite3 installed as a dep in my project if that makes a difference or not.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions