Fabian B.
Explore posts from serversDTDrizzle Team
•Created by Fabian B. on 2/14/2024 in #help
How do I write a subquery inside select?
I have this SQL which is doing what I want
The query selection representation for this would be
which also works. But I need a representation in a normal select query. I am trying to wrap my head around this, but it just does not seem to work. So far I got this, but not sure if I am on the right path here. I don't see how I can select from the subquery in
allJobTypesManual
.
Thanks in advance!2 replies
DTDrizzle Team
•Created by Fabian B. on 1/15/2024 in #help
type "GEOMETRY(POINT)" does not exist
Hi there! I try to use PostGIS with drizzle and having a hard time. I try to run the following migration file
But it errors with
Even though PostGIS is setuped successfully. When I run this SQL in supabase directly, it correctly adds the new column with the special data type.
I'm not the only one: https://github.com/drizzle-team/drizzle-orm/issues/1315
Maybe someone has an idea, would be grateful!
12 replies
DTDrizzle Team
•Created by Fabian B. on 8/27/2023 in #help
on every `migrate()`: schema "drizzle" already exists, skipping
Hi there! I have setuped a postgres DB. Everytime I call migrate(), it works and migrates, but returns these two warnings:
Does anyone have an idea on why this happens and how I can stop it from happening? Clogs up my console 😄 Thanks!
--
I am using [email protected], [email protected], [email protected]
11 replies
DTDrizzle Team
•Created by Fabian B. on 5/22/2023 in #help
`where` inside relational queries `with` does not work
Hi there! I'm new to drizzle and tried out the relational queries.
I want to do a nested
where
rule inside a with
relation. But doing it is giving me type errors (Object literal may only specify known properties, and where does not exist in type
) and it's just ignored by the orm.
Maybe someone knows what I am doing wrong and why I don't get the option to do a where
. Thanks in advance!
My query:
My schema (simplified):
9 replies