Re-write in Typescript
Commits:
- chore: remove doctoc and it's pre commit hook fdcf022
- docs(README): update readme file aeb3873
- refactor: update grouping of tests d637f79
- chore: update dependencies 123a1d4
- refactor: remove unwanted
difference
utility method db67faf - feat(manytomany): add persistance methods 10b3af1
- fix: await trx.rollback call 9c80036
- refactor: improve model and relationships persistance layer 72b26e7
- feat(commands): introduce force flag and prompt in production 5e1db48
- feat: add support for transforming values when persisting them to the db 231af82
- refactor: cleanup codebase 27a9155
- refactor: cleanup API and make it consistent 6a67a23
- refactor: remove executable trait in favor of executeQuery helper cb8067c
- chore: update dependencies aa38b6e
- refactor(model): update column decorator properties name and behavior a607abb
- refactor: rename config getCastKey method to getCastAsKey 8cca1d4
- refactor: update exception message occurred during Model.refresh d050ecc
- refactor: pass relationship data to profiler 84761e6
- refactor: remove _ prefix from all private properties c925b45
- fix: export relations type definition 2785397
- chore: update dependencies 98907df
- chore(release): 7.3.2 f0b5469
- fix: constructor injection parameters 3e4d27e
- chore(release): 7.3.1 279d7a5
- fix: commands to use correct constructor arguments for ace base command b92fb8e
- chore(release): 7.3.0 fd04708
- chore(package): update dependencies 4880dde
- docs: add roadmap file a91563f
- feat: add save, attach and detach methods to manyToMany relationship b3e628e
- feat: add query client to all relationships 392951d
- refactor: rewrite preloader to be more reliable 8ad50e7
- refactor: re-arraging arguments position of relations query builder fcc5fb5
- feat: pass application logger to knex c0e6c9e
- refactor: cleanup for making relationships and their types more consistent e3aaaee
- feat: add updateOrCreate to hasOne and hasMany 83cffd3
- refactor: rename firstOrSave to firstOrCreate 6ec9c2d
- feat(BaseModel): add updateOrCreateMany to avoid creating duplicate rows 7c24bdc
- refactor: consistently reflect query options on the model instances 45ea50e
- feat(BaseModel): add fetchOrNewUpMany and fetchOrCreateMany methods 7e2cb19
- test: fix failing tests e1e38b6
- test: add more assertions to cover edge cases ce286dc
- feat(relationships): add create and createMany methods e2a662c
- feat: add support for extending query builders 1fb858d
- chore: ignore tmp directory 329e961
- feat(relations): push relationships preloads using model instance 82c4cfb
- fix: define relationship type on hasManyThrough relationship b9b4b40
- feat: add method 2096de6
- fix(manyToMany): attach method now updates pivot rows when attributes are defined 209dff3
- fix: always resolve adapter key from static methods 08954b2
- fix(schema): schema.now must return knex query builder instance 439902c
- style: use eslint and remove tslint beac752
- chore: update dependencies ede5fad
- refactor: nested columnify options inside config key bc01d4a
- fix(BaseModel): ensure we are saving when creating (#504) b22bd21
- fix(MigrationSource): skip sourcemap files (#503) c670cc3
- chore(release): 7.2.1 67814b4
- fix(migrator): use the correct batch number when no batch is defined during rollback 7e8532a
- refactor: improve visual outlook of
migration:status
command 85755bb - fix(MigrationSource): use appRoot for reading migrations 15c81ec
- fix: register correct paths to ace commands 3c28b83
- chore(release): 7.2.1-0 37b2dc0
- chore: publish commands 081a613
- chore(release): 7.2.0-0 7a7afc3
- refactor: accept custom return types for model and relation query builders 06c7110
- fix(types): QueryBuilder.with accepts sub query builder instances as well 5323b2d
- fix(adapter): use adapter key when consuming insert returning results fe12d66
- chore: remove linter await promise rule 8d8c697
- chore: update dependencies e995dcb
- chore: setup providers and commands instructions inside package file f902bc2
- feat: add status command c808258
- feat: add rollback command 82a8d53
- feat: add migrate command a0c49d3
- refactor(Migrator): Include a complete trace of migrated files and their respective status 6ffacc9
- feat: add make migration command 56efe6e
- chore: update dependencies 26d1e4c
- refactor: add option to close all db connections from the migrator 67d9b22
- fix: handle esm exports when requiring migrations f7a30af
- test: fixing tests helpers to make tests pass 124044c
- refactor: remove primaryAdapterKey in favor of using $refs for looking up cast keys a899390
- feat: add refresh method to refresh model instances 351abc8
- fix: pass transaction client from query builder to model instance 312e8b3
- chore(release): 7.1.7-0 42adc45
- fix: use correct query constructs for truncating table 748a678
- fix: use primaryAdapterKey when adding where or returning constraints 7b6f9bb
- chore: update dependencies 3338229
- feat: export schema from the provider 31ae9eb
- refactor: removing debug flag from test config 9f24298
- feat: implement sync and detach methods on many to many query builder f09286c
- feat(migrator): add getList method to get list of migrated files eac2405
- test: fix failing tests 06f9fa6
- chore: update dependencies 0fcb36e
- chore: update dependencies 7723c11
- feat: implement migrator to execute schema files 0d05dc0
- feat: add schema class to create/modify tables under migrations f872397
- feat: add support for getting advisory locks with pg, mysql and mariadb e424d1f
- feat: implement updateOrCreate b957c6e
- chore(release): 7.1.6-0 28c20bf
- feat: add support for model hooks f6c7f71
- test: fix failing tests 0f6fea6
- feat: export Refs type to generate a key/value pair of model properties and adapter keys 046e5c2
- feat(basemodel): compute refs from the added columns d462a1a
- feat: add support for updating/deleting related rows using query builder f801e38
- feat(model): implement update,delete and counter methods to model query builder 912f7e1
- refactor: moving aggregate functions to chainable query builder 9b48d5f
- refactor: ignore mysql dialect returning warning 7ab7f17
- refactor: do not have defaults for relationships, let the end user define them eac50c7
- feat(belongsTo): implement dissociate dddcb4d
- refactor: supress returning warning for mysql dialect a34563f
- refactor: get rid of lodash 768f704
- refactor: simplify types c0ef456
- chore: update dependencies 8b7c824
- feat: adding support to save related models f2f385c
- test: add tests for relation query builder fetched using related method a7aa2d0
- feat: pass sideloaded values to preloaded relationships 5b8d935
- refactor: simply API to get-set model $options 29c3d6e
- feat: creating dedicated query builders for all relationships 156073a
- refactor: use wherePivot methods 2f5f588
- feat: add pivot where clauses to many to many relationship query builder 752e88e
- chore: remove tmp dir ae331c3
- feat: add support for preloading using model instance 8d8cfd1
- chore: update dependencies f8b4147
- refactor: making improvements to has many through decorator function 4bb4ff5
- chore(release): 7.1.5-0 42b08ec
- fix(belongsTo): use correct FK for the query 416d7b2
- chore(release): 7.1.4-0 48f2cd2
- test: fix failing tests bb9276a
- refactor: Abstract preloading logic to it's own class ae6a4e2
- feat: implement has many through 374c0b2
- feat: add many to many relationship 25ce9c7
- fix: lazy boot relationships for circular dependencies to work fine 6593b38
- test: add another use case test for hasMany 91e969c
- fix(belongsTo): set related many set correct relationships d3db798
- chore(release): 7.1.3-0 aa87408
- chore: add healthCheck property in config template 34f6f92
- refactor: export relationship decorators from provider 5240745
- feat: implement belongsTo relationship 3c541db
- feat: implement hasMany relationship ff24e55
- refactor: tighten up preloads api 0171d0b
- refactor: cleanup tests to avoid creating too many connections 1332b97
- feat: model insert,update and delete now allows using transactions 17916e0
- refactor(transaction): use events instead of hooks a3510f8
- feat(transaction): add support for before and after commit/rollback hooks b6f2b3e
- test: fix breaking tests b05aeea
- refactor: ask query builder to return the profiler action 8a2129e
- feat: adding static find methods ec146ad
- feat(baseModel): adding serialize to offload work from toJSON method 9035661
- refactor: remove nullable from columns and add serialize property 6259c52
- refactor: fix breaking test 1029bb2
- feat: add healthchecks support b604001
- feat(config): add support for optional config revisions 1acd888
- refactor: marking certain properties readonly d99d1ea
- feat(manager): add support for patching connection config a832f15
- refactor: manager.add now acts as a noop for existing connection cf4f1f8
- fix: order of event arguments on the connection class 9613b62
- refactor: change idle state to registered to be more accurate 69c4ef3
- refactor: restructure tests and fix typings reference path in source code 0b93d2d
- refactor: adding new static methods for querying on the model 4f04995
- refactor: improving relationships API 9b881c7
- feat: add support for nested preloads 6e19421
- feat: restructure and implement hasOne f0ac782
- refactor: export computed decorator d6da327
- chore: update dependencies b70b7a5
- chore(release): 7.1.2-0 a9b60fb
- feat: adding support for defining query options and sideloaded properties fcf4365
- ci: removing environment flag f144b3b
- test: update .env file a9e1fbf
- fix: wrap query results for sqlite driver as well 4dd6ed2
- refactor: model query builder subqueries can now access the parent model 4d5b990
- feat: implement orm query builder bc3f1ae
- chore(release): 7.1.1-0 f0ffd7a
- fix: attach adapter to the base model 2de66e3
- fix: typings to use generics for returning concrete types e06c5c5
- chore: fix database template file e9cb112
- fix: register typings inside package file 97a32ae
- chore(release): 7.1.0-0 617b5ba
- chore: update data-models dependency c7b5f4a
- test: fix failing test with sqlite driver coz of returning method nature b3ab46e
- chore: update dependencies 7ced5e4
- chore: using adonisjs block to define instructions and removing instructions file 3fb5229
- feat: implement basic functionality for the base model d330c8d
- refactor: set result same as record initially 2507369
- feat: initiate orm 69e11f9
- chore(release): 7.0.1-0 01f0097
- chore(releases): skip tests before publish bc0ceef
- chore: copy templates to build dir b645f52
- fix: export default instructions function 97b53eb
- fix: default export provider ff77d48
- fix: export public types & interfaces 9d83704
- fix: export Database const from typings b9b41d4
- chore(release): 7.0.0-0 b3add70
- refactor: add missing dependency for tests to pass f26fbd2
- chore: add np for releases aaebc71
- feat: add instructions file c7d6588
- chore(package): update dependencies 0991e3a
- chore(package): update dependencies f29e490
- refactor: cleaning up and using traits to keep the code DRY e782f28
- refactor: scope database class inside it's own directory a97a7da
- refactor: use unscoped profiler by default be0a7d4
- ci: removing appveyor 7ad4b6d
- chore(package): upgrade for knex latest version 5f9233e
- feat: allowing defining mode and profiler for a query client b9277ad
- feat: add support for profiling queries d31e8a1
- feat: add database to be the primary API for making queries 233a7c8
- feat: add support for modes in query clients 1a77939
- feat(connection manager): proxy error event b2d53df
- refactor: abstract queryclient to it's own class from connection 35ad76d
- feat: finish query builder with read/write support cbd9fc3
- feat: add support for aggregates in query builder 034ea08
- feat: implement insert query builder bc5da41
- chore(package): update dependencies 5cd6d28
- ci: using circleci machine executor for tests 0a45cf1
- chore: setup tests using docker compose 00b4f7e
- refactor: running tests for mysql,pg and sqlite drivers aeaf665
- feat: completing the chainable query builder f28258e
- feat: add connection manager to manage database connections edf5d80
- feat: implement connection class to manage and monitor pool resources 76d309d
- feat: setup initial typings for database and querybuilder 90715a1
- feat: setup new project 78473c8
- refactor: remove old files cd46b79
- feat: add support for transactions for every query builder instance 5c1edb3
- create records using ModelFactory's "createMany" sequentially (#495) 3357127
- feat(relations): allow to hide or rename pivot attribute on belongsTo… (#433) 3dc5376
- chore: add stale.yml file 2cf02e1
- docs(seeds): rename 'migrations' function docs (#511) fdb6635
- chore(package): update dependencies (#500) 668e0af
- add parameter index in the JSDoc (#502) 56c50a8
- test(mysql): fix failing tests 6cd666d
- chore(docker): add docker file for local testing 92c5834
- fix(relations): apply pivotModel scopes on belongsToMany sub queries 6cc7012
- chore(package): update dependencies 73c1071
- feat(model): add support for pre-defining timestamp values 5c2b180
- chore(dependency): update knex (#421) fe5fa00
- doc(readme): fix typo 7ed4138
- doc(instructions.md): fix typo 974845e
- Fix typo in JSDoc (#403) 2646b0c