core
core copied to clipboard
NodeJS ORM
Model.id allow user to create a reference with a model instance, without loading it. We could introduce method to manipulate this reference; ```javascript const MY_REF = Model.id(ID) await MY_REF.delete(); //...
Average, sum... Search for an API; ```javascript const result = await Invoices.query() .groupBy(Invoices.userId) .define('totalDebt').asSumOf(Invoices.amount) .define('nbInvoicse').asCountOf(Invoices) .find(); ``` Hard scenario, how to do two stage grouping pipeline? ```javascript const result =...
Make a system to manage migration? we could do a up / down system? to apply / migrate data depending of the stage? ```javascript // Or connector? await ilorm.applyMigration() Schema.version(timestamp...
# Explanation Dead lock is the situation where two process lock data in a way that we can not move forward. For example, if process 1 lock A after B,...
In the current implementation of Transaction for knex, we use the forUpdate operator, that way the table "is lock" and the execution is "protected", the problem of this approach is...
We could add a feature for listening uncaught exception, and trying to rollback transaction of the async context, or all transaction (if the process crash?) to destroy transaction in a...
Currently, the test scenario on Transaction include the three ways to do transaction with ilorm with findOne and save operation. Some scenarios cases for Transaction are missing, this issue could...