NotLuksus
Explore posts from serversDTDrizzle Team
•Created by NotLuksus on 8/2/2023 in #help
ReferenceError: Cannot access 'addon' before initialization
This is one of the files in ./schema/
When I run
npx drizzle-kit generate:sqlite
I get the error:
And I don't understand why since the schema doesn't have any self references32 replies
DTDrizzle Team
•Created by NotLuksus on 4/4/2023 in #help
"Extend" tables by other tables
Hey all,
first of all great work with drizzle.
Haven't had the time to play around with it so far. But just from how I currently use other orms.
I have an AbstractEntity "class" which isn't an actual db table, but shares the common column each table should have e.g. a unique id.
Basically like a parent class, but for DB tables.
Is it possible to do something similar.
Without trying: Can I just create an object using the given types/constructors from drizzle and then spread them?
I hope that makes sense
2 replies