zapatos
zapatos copied to clipboard
Zero-abstraction Postgres for TypeScript: a non-ORM database library
Hey, it's me again :) Would it be possible to add camel case conversion for column names? E.g. the column name is `foo_bar`, but in TS/JS, it is more common...
As the docs say, "[...] `Updatable` and `Insertable` interfaces for tables and views that aren’t writable are now `{ [key: string]: never }` instead of `{}`. I have a view...
Currently in order to set config you need to call `setConfig`, which will affect all queries. I currently use `queryListener`, `resultListener` and `transactionListener` in order to log requests, but I...
Currently, errors in transactions do not get propagated to the pool. This means failed connections will get returned to the pool, effectively poisoning the well. This change simply passes exceptions...
Currently, the `of` parameter of the `lock` option accepts a `Table` string. This doesn't type check properly when using a schema outside the default search path, as the Zapatos type...
If you have a schema that is empty, global aggregate types are set to `any`. This can easily be resolved by removing it from the config but zapatos should handle...
Trying to do something like this: ```ts const conditions = [] // dynamic if (something) { conditions.push({email: "[email protected]"}) } if (somethingElse) { conditions.push({phone: "+12345678910"}) } db.selectOne("person", conditions) ``` Unless I'm...
They are [returned as a `string` by node-postgres](https://github.com/brianc/node-postgres/issues/811#issuecomment-116644535) because `number` will lose precision for certain decimal values and integers above `Number.MAX_SAFE_INTEGER`.
Changes: - Allow setting NULL-s via object. Query builder will now use "IS" operator instead of the (incorrect) "=". - Allow `undefined` properties in objects you provide to WHERE queries....
This is a fantastic idea and excellent library. Any chance that it might work in Deno scripts?