Mario564
Mario564
Explore posts from servers
DTDrizzle Team
Created by Arthur on 2/13/2025 in #help
Drizzle zod infer wrong type
Will look into it. Thanks for creating the issue
8 replies
DTDrizzle Team
Created by SpoderMan on 2/3/2025 in #help
Self join breaks return type
Don't know honestly. I think aliasedTable is an outdated implementation of alias. The former is likely to be deprecated and then removed in v1
9 replies
DTDrizzle Team
Created by SpoderMan on 2/3/2025 in #help
Self join breaks return type
@SpoderMan
9 replies
DTDrizzle Team
Created by SpoderMan on 2/3/2025 in #help
Self join breaks return type
import { alias } from "drizzle-orm/pg-core"

const parent = alias(users, "parent");
import { alias } from "drizzle-orm/pg-core"

const parent = alias(users, "parent");
9 replies
DTDrizzle Team
Created by SpoderMan on 2/3/2025 in #help
Self join breaks return type
Hey there. Fixed by by using alias function instead of aliasedTable
9 replies
DTDrizzle Team
Created by Udlei Nati on 1/6/2025 in #help
Could not find package 'postgres' from referrer 'file:///deno-dir/npm/registry.npmjs.org/drizzle-orm
Don't got any updates on my end. I haven't used Deno extensively so not sure what could be the issue here
4 replies
DTDrizzle Team
Created by manikandan on 1/7/2025 in #help
Need help with InferSelectModel
Hmm, there are a few other things you can try: 1. Change target in your tsconfig.json to be set to a more recent version. 2. Update ORM and Kit to the latest versions
9 replies
DTDrizzle Team
Created by RickRyan26 on 11/27/2024 in #help
Drizzle-zod combined with regular zod? 🙃
@RickRyan26 Not sure if I understand what you're asking for when you say that you want to merge the two, but this could be what you're looking for: https://orm.drizzle.team/docs/zod#factory-functions
4 replies
DTDrizzle Team
Created by LEGION on 1/2/2025 in #help
Weird SQLite malformed error
You may want to reach out to the Neon Postgres team, seeing as the error occurs within C++ code, it might be a low level issue on their end
7 replies
DTDrizzle Team
Created by yehtet804 on 1/8/2025 in #help
Drizzle-kit force rename
If you're upgrading from an older version of Drizzle ORM and Kit, you may need to manually update the generated migration file since there may have been breaking changes in between versions
5 replies
DTDrizzle Team
Created by yehtet804 on 1/8/2025 in #help
Drizzle-kit force rename
That seems like a different issue, seeing as I can't see any product table in the sceenshot you sent
5 replies
DTDrizzle Team
Created by NotLuksus on 12/29/2024 in #help
Typescript doesnt autocomplete columns on table
@NotLuksus Hey there, still having this issue? Could you show me the type of sourceDocumentTable by hovering over it in your editor?
2 replies
DTDrizzle Team
Created by yehtet804 on 1/8/2025 in #help
Drizzle-kit force rename
@yehtet804 The generate command should be used in dev and then committed in your repo so you can then use the migrate command without getting prompted for anything
5 replies
DTDrizzle Team
Created by manikandan on 1/7/2025 in #help
Need help with InferSelectModel
Hmm, you may also need to set strict to true. Try that/
9 replies
DTDrizzle Team
Created by Cody Oakes on 1/7/2025 in #help
Generated Postgres Column adding together other columns that may have null values
Also why doesn't it work with table names?
Not entirely sure, apparently it's something to do with how Postgres handles references, scopes or something like that
14 replies
DTDrizzle Team
Created by Cody Oakes on 1/7/2025 in #help
Generated Postgres Column adding together other columns that may have null values
You think I can remove the table name from the schema file and drizzle will produce the migration that way?
You can try doing this:
sql`"${sql.raw(table.field.name)}"`
sql`"${sql.raw(table.field.name)}"`
Not as elegant but it does (or at least should) work.
14 replies