Braveheart
Explore posts from serversDTDrizzle Team
•Created by Braveheart on 1/10/2024 in #help
Temporal custom type "TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and nul"
3 replies
DTDrizzle Team
•Created by Braveheart on 1/3/2024 in #help
Performing Drizzle ORM migration in vitest results in permission errors
In a test i'm using Drizzle ORM to do migrations in vitest beforeAll, but it doesn't work like when I run a script from
which then calls this
but when running in a test file I get root cause error:
and then results in
1 replies
DTDrizzle Team
•Created by Braveheart on 12/29/2023 in #help
Extract type from drizzle join for use elsewhere or exporting
I get the type in the same function scope like so
eventRecurringPatterns
is typed with {event ,recurring_pattern}
but how do I extract this type for use in other function params? Maybe with Parameters<typeof theJoin>
I want to avoid doing it manually
I imagine it starts something like this screenshot3 replies
DTDrizzle Team
•Created by Braveheart on 12/27/2023 in #help
disk I/O error when running migration in context of vitest runner
I'm building a robust drizzle event selector
https://github.com/quantuminformation/drizzle-sqlite-recurring-events
In my test suite I am doing this:
7 replies
DTDrizzle Team
•Created by Braveheart on 12/26/2023 in #help
inferSelect doesnt take into account defaults in schema
13 replies
DTDrizzle Team
•Created by Braveheart on 12/26/2023 in #help
value.getTime is not a function
this code in this basic repo
https://github.com/quantuminformation/drizzle-sqlite-recurring-events
when running
pnpm run db:seed
gives error
you can see that getTime works when debugging in vscode so I don't know where this error originates3 replies
DTDrizzle Team
•Created by Braveheart on 11/25/2023 in #help
Steps to fix errors like `drizzle/meta/0000_snapshot.json data is malformed`
1 replies