Open simplenotezy opened 4 months ago
For some reason this fixes the error:
const usersQuery = await dataSource.query({
text: sql`
SELECT
+ name::string AS "name"
- name
FROM
"user"
WHERE
id = ANY($1)
`,
values: [ids],
});
Separate to this particular problem, I've improved error message handlings in several areas including DB connection issues https://github.com/JasonShin/sqlx-ts/pull/156/files
I think the library needs better error handling. I've often been stuck for quite a while with simple queries that fail with an unknown rust error.
Now I am facing this one, and I am not sure why:
With this code:
p.s. Impressive how fast you progress with this package, good job!