djMax
Generic function to stream a table
This is where I ended up: https://github.com/sesamecare/to-clickhouse/blob/main/src/dbs/kysely.ts#L21 The most important goal was to get autocomplete on the parameters, and that seems to be working, but as you say there have to be some non-type-safe things inside the function to maintain sanity.
5 replies
How do you formulate a custom type argument?
Not much there because kysely doesn't explicitly generate anything for functions or records, but I put the sql. I want to call that function. I made it work by changing the param to json and then doing in the function, but... ewww.
4 replies