3.4.0 (2023-02-06)
- generate info object for clients to pass as the DBDataSource type parameter (57e05d2)
- generate update schemas derived from the insert schemas (e32b2d6)
3.3.1 (2023-01-22)
- check for null in isEmptyObject (a8641c7)
- correctly handle insert of an empty object at the query builder level (cde95b0)
3.3.0 (2022-12-13)
- overhaul everything again and add update schemas (83b012e)
3.2.2 (2022-12-10)
- nullable columns aren't optional in select, rip (cc3408d)
3.2.1 (2022-12-10)
- nullable columns are also optional (2e78241)
3.2.0 (2022-12-10)
- modify insert types based on updatability (9b2d4f7)
3.1.0 (2022-12-10)
- disable eslint by default (a363713)
- zod date function is lowercase (f60bbbc)
3.0.0 (2022-12-10)
- overhaul everything to be Zod-based
- update everything for latest slonik
- remove dependency on apollo
- circular, recursive, and out-of-order relationships (4a42a4b)
- default value expression (a98e6e8)
- differentiate select and insert types (6aa881a)
- import sources are strings, not identifiers (aa1817b)
- remove dependency on apollo (98d9ef5)
2.5.0 (2022-06-02)
- allow query options to be overridden at call time (e827992)
- allow query options to be overridden at call time (#446) (be19e5d)
2.4.0 (2022-04-13)
- add zod-based schema parsing capability (51a2957)
- generate columnTypes as const rather than Record (8bda964)
2.3.0 (2022-04-05)
- transaction support (a00de42)
2.2.0 (2022-04-05)
- auto-prime other loaders (4cdd9a0)
2.1.3 (2022-04-01)
- make multi-column loaders actually castable (b9b7006)
- make multi-column loaders actually castable (#415) (0889674)
2.1.2 (2022-03-31)
- respect column casing in multi-column matchers (#414) (538b793)
- respect column casing in multi-loaders (4072efc)
2.1.1 (2022-03-30)
2.1.0 (2022-03-30)
- implement multi-loader data function (d34b561)
- initial implementation of createMulti loader (7d286ce)
- multi-column loaders (#410) (c55f2a5)
2.0.0 (2022-01-28)
- datasources: improve api (#389)
- datasources: make normalizers editable on a DS-by-DS basis
- datasources: make public methods protected
- datasources: remove deprecated methods
- datasources: improve api (#389) (be80d23)
- datasources: make normalizers editable on a DS-by-DS basis (63ee861)
- datasources: make public methods protected (820b295)
- datasources: remove deprecated methods (df45398)
1.9.4 (2022-01-24)
- deps: upgrade yargs
- deps: upgrade slonik dependencies
- deps: upgrade apollo dependencies
- type changes (3e78745)
- deps: upgrade apollo dependencies (80151dd)
- deps: upgrade slonik dependencies (d6e8464)
- deps: upgrade yargs (381ef0c)
1.9.3 (2021-09-14)
- generator: use case-sensitive collations (741cfab)
- generator: use case-sensitive collations (#333) (be6a05d)
1.9.2 (2021-09-13)
- generator: use case-insensitive collations (824dc27)
1.9.1 (2021-07-21)
- insert: return array when given an array of one input (a9a4a8c)
- insert: return array when given an array of one input (#285) (c4ef47b)
1.9.0 (2021-07-21)
- finders overhaul (#283) (3a3b446)
- datasource: create new FinderFactory interface (d78a139)
- datasource: extend loader to infer multi for finders (02b5be8)
1.8.1 (2021-07-02)
1.8.0 (2021-05-06)
- add method for counting by groups of columns (c6afe19)
- fix incorrect types for count method (0d4796d)
1.7.1 (2021-04-19)
1.7.0 (2021-04-16)
- allow getData to be overridden in loader creation (ebb2a1e)
- allow getData to be overridden in loader creation (#200) (abbde04)
1.6.0 (2021-03-31)
- enable custom operators through use of sql tokens (0254308)
- enable custom operators through use of sql tokens (#192) (c4a77db)
1.5.3 (2021-03-17)
1.5.2 (2021-03-16)
1.5.1 (2020-12-28)
- correct get types to allow forUpdate (d526d07)
1.5.0 (2020-12-28)
- support FOR UPDATE in select queries (30a59ce)
- re-throw error after printing the message (4879697)
- sort enum members alphabetically (5c2cd88), closes #63
1.4.2 (2020-12-10)
- pass options through to loaders (0514a3c)
1.4.1 (2020-12-05)
- improve json/jsonb generics for functionality and readability (523850a), closes #48
- parse timestamps in house (1238371), closes #45
- remove extra options from count query (0fc3e72), closes #47
1.4.0 (2020-12-04)
1.3.0 (2020-12-04)
- allow column type to be overridden (9f82a6c)
- generate several utility types in prep for json/b support (7df7056)
- improved key/column transformation (975e6e9)
- stringify JSON objects (abb6a5b)
- type parameters for json/b (c47e13b)
1.2.5 (2020-12-03)
- loaders: types (5f7601b)
1.2.4 (2020-12-02)
1.2.3 (2020-12-02)
- (more or less) return expected type when given zero rows to insert (f81ee80), closes #33
- always return await for async functions (57b7c4a)
- apparently CI can't handle ||= wat (0aa6b80)
- handle the case of a single empty row (6d6afcb), closes #34
- make camel-cased column names work on insert (6b2886c), closes #30
- only override expected if it's not set (e9ef675), closes #32
- parenthesis fail... and also logic fail (1a03238)
1.2.2 (2020-12-01)
- allow insertion of non-uniform rows (a4af9ab), closes #28
- allow raw sql in inserts (a8c94ca), closes #27
1.2.1 (2020-12-01)
- add RETURNING clause to INSERT query (80a703e), closes #24
- pass through options in update (ec891c0), closes #23
1.2.0 (2020-12-01)
- allow 'undefined' for values in update/where (8ec3fec), closes #17
- columnType is optional (09c0362), closes #2
- nullable fields are optional when inserting (fba3e1c), closes #20
- remove table identifier from UPDATE SET clause (6dbf930)
- temporarily just snake case columns (b2c7004), closes #21
1.1.0 (2020-11-30)
- remove newline. it does nothing (855b63f)
- add options to enable/disable type gen (bf95288)
- basic count query to reproduce existing behavior (02bbf59)
- cli and generate command (ca0e563)
- delete query (ef7ff06)
- disable generation of certain database objects (faa663a)
- enable loading database url/schema from node-config (edc4e9a)
- first pass w/ basic features (8fe269b)
- generate type objects (3782842)
- groupBy, orderBy, and having clauses (b92f1a5)
- import DBDataSource as-is from fallingfish (8e8b783)
- insert query (a4fcc45)
- insert type generation (9ee2258)
- overhaul DBDataSource (50ec4bc)
- query comments on database objects (46ad4c6)
- QueryBuilder with WHERE clause generation (22da2f2)
- select query builder with a single smoke test (3b415a3)
- stub bin command (d4e13ff)
- update query (f3538d5)
- conditions stuff (59f18f4)
- correctly set expected default with one row (6c3953d)
- enable callers to properly disconnect db (5850fc3)
- implicit order dependency with custom types (6b52230)
- inverted hasDefault logic (444f875)
- LoaderFactory types (1019ae4)
- make pg-typegen executable (00182f6)
- move columnTypes to constructor arg (f179d89)
- only warn about unknown type once (0f56466)
- orderBy ASC/DESC API (222833a), closes #3
- pre-emptively stop removing comments from output (1495e35)
- prefer udt_name over data_type for array elements (cfb9859)
- register table types (01cfd17)
- remove unnecessary declare keywords (d2086ca)
- require or for delete query (cc6d75b)
- update stuff i missed before (db10afd)