volks
Explore posts from serversDTDrizzle Team
•Created by volks on 5/29/2023 in #help
Postgres's Serial column type doesn't automatically have a default
Hello, when using postgres's
serial
types, and setting them as primary keys, there is an issue currently that does not mark them as has default
. What I mean is, from the docs The data types smallserial, serial and bigserial are not true types, but merely a notational convenience for creating unique identifier columns (similar to the AUTO_INCREMENT property supported by some other databases)
, the Serial
types already have a default implementation, but if you use them as is in Drizzle, they aren't regarded as having a default
I'd expect it to be nullable for inserts as serials have default6 replies
DTDrizzle Team
•Created by volks on 5/13/2023 in #help
Self referencing nullable ID field not assigneable in a `eq` statement
I am not sure if I encountered another edge case but basically I have a self-referencing table where the reference can be nullable
2 replies
DTDrizzle Team
•Created by volks on 5/10/2023 in #help
Raw sql nullable types, sql<Type | undefined>
This gets inferred to
SQL<any>
Is there a way to have a nullable type when using raw sql?9 replies
DTDrizzle Team
•Created by volks on 5/8/2023 in #help
Support for multiple with statements?
Is it possible to have multiple with statements?
2 replies
DTDrizzle Team
•Created by volks on 5/6/2023 in #help
Custom Type interpreted as String
Hello everyone, I am having some issues with getting Drizzle to work with PostGIS, I am trying to have support for PostGIS's Point geometry. This is what I have setup
But the data returned stays a string
This is my query
This is happening across packages in monorepo, not sure if that could cause the type inference to fail
73 replies