Vilian
Vilian
Explore posts from servers
DTDrizzle Team
Created by Vilian on 7/28/2024 in #help
Is it possible to create table during runtime?
I'm are trying to create a multi tenant application for my service. However, i'm unable to find relevant information on whether or not creating table during runtime is possible or not. The goal here would be to simply create new tables for a newly added tenant. The tables always have the same schema. My strategy is to simply suffix the newly created tables with a tenantId string
1 replies
DTDrizzle Team
Created by Vilian on 5/23/2024 in #help
Migrations not changing on adding notNull
Is it intended behaviour for migrations not to detect and react to the addition of a .notNull on some column ? Currently, my use case is that have a first migration that has created the table, but now the second migraiton (adding the notNull) doesn't actually create a migration.
2 replies
DTDrizzle Team
Created by Vilian on 8/19/2023 in #help
Query builder insert
What is the syntax for creating an insert query with the query builder ? There are some examples on the website showcasing select, but i'm looking for insert logic, which the query builder under drizzle-orm/sqlite-core is missing ( seems to only have select on the QueryBuilder)
9 replies