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
Set Request Headers for individual requests?
Hello everyone, I have a simple question, can you somehow add headers to the individual requests instead of doing it once during setup of the tRPC? I would like to have custom per request header that I cannot know ahead of time.
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
Integrate third-party added endpoints into the router definition?
Its would be cool but not too important, so I was wondering whether or not it would be possible to have dummy router configs without any actual routers. I am using SuperTokens for my Auth and it adds several endpoints to my server (/auth/signup, /auth/login and so on), and it would be cool to somehow add these into tRPC so that I could ditch custom fetch calls.
9 replies