Closed zansonMH closed 1 week ago
The select query definitely doesn't work and shouldn't work https://kyse.link/XYN3x. Yes, you can compile it if you completely ignore type checks and the javascript works. But types definitely don't.
Neither should any other query. You haven't specified a table name at all and string
is not a valid row type.
I have an odd scenario with an older DB were slowly migrating to a new system. but in the meantime we need to support it with our new API. the problem is, this table name has a
.
in the name. so we need to wrap it in"
in order to call it.for examples, lets call this tables
something_2.0
when selecting from this table, its a simple:
this works great, but we can not do the same thing for inserts and updates, which are arguably the more important place to be using the builder.
this is the error using the same strategy with insertInto and updateTable, which makes sense because it only supports a raw string.
if we use the table name straight up it creates a query like: