MAST
MAST
DTDrizzle Team
Created by MAST on 8/30/2024 in #help
How to create a reusable query that can receive different select values?
I've tried that and that's not the issue. The error is also saying that where property does not exist.
3 replies
DTDrizzle Team
Created by samson on 6/2/2024 in #help
drizzle-zod not working with column of type vector (as introduced in latest release v.0.31.0)
So the vector is new so I'm assuming the drizzle-zod hasn't been updated to work with it.
2 replies
DTDrizzle Team
Created by taky0n on 5/28/2024 in #help
"where" clause not found in "with" object
But I think this is planned to be added back in (it was removed because it destroyed the typescript server as I remember it.)
7 replies
DTDrizzle Team
Created by taky0n on 5/28/2024 in #help
"where" clause not found in "with" object
You'll probably have to go back to a normal query.
7 replies
DTDrizzle Team
Created by taky0n on 5/28/2024 in #help
"where" clause not found in "with" object
So no filtering in the with part.
7 replies
DTDrizzle Team
Created by taky0n on 5/28/2024 in #help
"where" clause not found in "with" object
Currently you can't filter based on relations in the relational query builder.
7 replies
DTDrizzle Team
Created by swiecki on 4/25/2024 in #help
CI/CD check if schema matches database
3 replies
DTDrizzle Team
Created by swiecki on 4/25/2024 in #help
CI/CD check if schema matches database
Does drizzle-kit check do what you're looking for?
3 replies
DTDrizzle Team
Created by Marcus on 3/6/2024 in #help
Circular Dependency Hell
9 replies
DTDrizzle Team
Created by DYELbrah on 3/12/2024 in #help
What is the import { check } used for from from "drizzle-orm/pg-core"
Or a WIP for checks in the database.
4 replies
DTDrizzle Team
Created by DYELbrah on 3/12/2024 in #help
What is the import { check } used for from from "drizzle-orm/pg-core"
Maybe drizzle-kit uses these?
4 replies
DTDrizzle Team
Created by DYELbrah on 3/12/2024 in #help
What is the import { check } used for from from "drizzle-orm/pg-core"
The only check I know of is in drizzle-kit https://orm.drizzle.team/kit-docs/commands#check
4 replies
DTDrizzle Team
Created by Marcus on 3/6/2024 in #help
Circular Dependency Hell
This should probably fix your problem.
9 replies
DTDrizzle Team
Created by Marcus on 3/6/2024 in #help
Circular Dependency Hell
No description
9 replies
DTDrizzle Team
Created by Marcus on 3/6/2024 in #help
Circular Dependency Hell
I remember seeing this in the old docs.
9 replies
DTDrizzle Team
Created by Marcus on 3/6/2024 in #help
Circular Dependency Hell
For example if the table is called workspaces you can do this:
const workspaces = pgTable('workspaces', {
workspaceId: cuid2('workspace_id')
.notNull()
.references(() => aliasedWorkspace.id),
});
const aliasedWorkspace = alias(workspaces, "aliased_workspace");
const workspaces = pgTable('workspaces', {
workspaceId: cuid2('workspace_id')
.notNull()
.references(() => aliasedWorkspace.id),
});
const aliasedWorkspace = alias(workspaces, "aliased_workspace");
9 replies
DTDrizzle Team
Created by Marcus on 3/6/2024 in #help
Circular Dependency Hell
Oh, I think you need to alias the workspace and then reference it.
9 replies
DTDrizzle Team
Created by olup on 12/31/2023 in #help
Help with git diff
What I do is copy my new migration that is on the branch and then use drizzle-kit drop to drop it. Merge/Rebase the branch to get the new migration and then generate the migration again and paste my migration.
2 replies