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
Hi, I'm trying to use Drizzle ORM in browser with wa-sqlite, a SQLite WASM lib. There are no drivers for it.
How can I use it? I made my db execute function, which takes an sql string and a params array which I can basically call from Drizzle query builder / sql tag.
Is this correct like this? I mean I made a function executeQuery(selectSQL, selectParams) which takes those exact outputs and it works.
I have some questions:
Do I understand correctly, that for create table statements, I need drizzle-kit and it's not compatible with browser envs?
Is it difficult to make a driver out of this? I mean it's a standard sqlite dialect. Can I tweak an existing driver to call my executeQuery?
What are the workaroiunds for using drizzle-kit / migrations with browser? I was thinking generating migrations files in a folder and just fetching those in the browser. I mean raw SQL statements. Would that work?
At which points do those boolean/timestamp, etc. auto-conversions happen? After the driver executes the query but before the results is returned? I guess for auto-conversions, I need a driver, right?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to use Drizzle ORM in browser with wa-sqlite, a SQLite WASM lib. There are no drivers for it.
How can I use it? I made my db execute function, which takes an sql string and a params array which I can basically call from Drizzle query builder / sql tag.
I mean the output of these:
Is this correct like this? I mean I made a function
executeQuery(selectSQL, selectParams)
which takes those exact outputs and it works.I have some questions:
Beta Was this translation helpful? Give feedback.
All reactions