Fixing this will require access to the driver's QueryResultHKT type (AKA the RunResult type in SQLite).
That either means:
- adding it to the
RelationalQueryBuilder type parameters (unlikely, since it's meant to be a readonly API).
- or introduce a
db.mutate (or db.write?) namespace for the upsert, updateMany, create methods, instead of exposing them on db.query.
Fixing this will require access to the driver's
QueryResultHKTtype (AKA theRunResulttype in SQLite).That either means:
RelationalQueryBuildertype parameters (unlikely, since it's meant to be a readonly API).db.mutate(ordb.write?) namespace for theupsert,updateMany,createmethods, instead of exposing them ondb.query.