neondatabase / serverless

Connect to Neon PostgreSQL from serverless/worker/edge functions
https://www.npmjs.com/package/@neondatabase/serverless
MIT License
318 stars 11 forks source link

use enum for type parameters on `NeonQueryFunction`? #40

Closed skyzh closed 11 months ago

skyzh commented 11 months ago

https://github.com/prisma/prisma-engines/pull/4110#discussion_r1286079637

as pointed out in an external review of using the library, it seems to be a little bit confusing to use true and false for NeonQueryFunction. Not sure if it is possible to do something like:

sql: NeonQueryFunction<ArrayMode, FullResultMode>
jawj commented 11 months ago

As discussed on the prisma-engines PR, I'm not certain this makes sense.