Tim van Dam
Tim van Dam
I'm talking about this call: https://github.com/jeffzh4ng/iruka/blob/02acaa0c621a6db9e874d6a7b4cc1bf2fd87f99a/src/data-structures/priority-queues/min-binary-heap.ts#L161 This call should not always happen here, as it can cause the compare function to be called with undefined values while the compare function...
**Article:** [Minimum-cost flow](https://cp-algorithms.com/graph/min_cost_flow.html) **Problem:** The proposed solution does not deal with negative cost cycles
Some things are hard to do in the orm **1. Breaking up large queries** In raw SQL, I would use `WITH` to break up large queries. I don't necessarily think...
Currently, `mixin()` creates a class where the constructor calls the constructor of all mixins. This is quite inflexible when you want to populate all required properties of these mixins. It...
Two suggestions: #### `.returning()` type. Accurate types would be very nice to have They can be stored in a new generic for `Query` and `BaseQuery` #### `.returning()` wildcard. When you...
Example test case: ```ts import { Database } from '@deepkit/orm'; import { SQLiteDatabaseAdapter } from '@deepkit/sqlite'; import { AutoIncrement, PrimaryKey } from '@deepkit/type'; class MyEntity { id: number & PrimaryKey...
The query is correct, but the result is not added to the deserialized entity. It works fine for nested joins on regular references. It breaks when you have a reference...
### Summary of changes Whenever doing a `useJoin` on some class property it uses `T[K]`, but when `T[K]` is optional/can be undefined this leads to a return type being `JoinDatabaseQuery`,...
### Summary of changes - Fixes an off by one error in the amount of connections a SQLite database creates - Always sets maxConnections to 1 when using a `:memory:`...
Test suite: ```ts import { Database } from '@deepkit/orm'; import { SQLiteDatabaseAdapter } from '@deepkit/sqlite'; import { AutoIncrement, PrimaryKey } from '@deepkit/type'; class User { id: number & PrimaryKey &...