Merge pull request #257 from bknd-io/fix/postgres-0.17-updates

postgres: bump 0.17.1 and improve custom connection API
This commit is contained in:
dswbx
2025-09-14 17:10:32 +02:00
committed by GitHub
12 changed files with 105 additions and 75 deletions

View File

@@ -258,6 +258,9 @@ export class EntityManager<TBD extends object = DefaultDB> {
// @todo: centralize and add tests
hydrate(entity_name: string, _data: EntityData[]) {
if (!Array.isArray(_data) || _data.length === 0) {
return [];
}
const entity = this.entity(entity_name);
const data: EntityData[] = [];