icarus
icarus
DTDrizzle Team
Created by icarus on 10/31/2024 in #help
A way to make a custom type generatedAlwaysAsIdentity
I've tried the following ways to achive this, but none of them work.
id: customId("id").primaryKey().generatedAlwaysAs(sql`IDENTITY`)
id: customId("id").primaryKey().generatedAlwaysAs(sql`IDENTITY`)
dataType() {
return "INTEGER GENERATED ALWAYS AS IDENTITY";
},
dataType() {
return "INTEGER GENERATED ALWAYS AS IDENTITY";
},
16 replies
DTDrizzle Team
Created by icarus on 3/30/2023 in #help
drizzle-orm/mysql-core has no InferModel or MySqlRawQueryResult exports
Hi there, I'm not sure if I'm misunderstanding something here, but as per the documentation, drizzle-orm/mysql-core should have the exports InferModel and MySqlRawQueryResult, but whenever I try to import them in my project, I get the error Module '"drizzle-orm/mysql-core"' has no exported member 'InferModel'. I'm using drizzle-orm version 0.23.2, so it'd be awesome if someone could clarify whether this is a known issue, or what's happening here exactly.
27 replies