~aleteoryx/muditaos

ref: 03de91c8d2c4dace3e031e323f3424c6dfb0ce16 muditaos/module-db/queries/README.md -rw-r--r-- 432 bytes
03de91c8 — Kuba Kleczkowski [MOS-975] Fixed missing new message notification 2 years ago

#Virtual database query interface.

Instead, manually creating switch cases for each possible query logic, create one virtual query interface and push querying logic to db (where it's implemented)

  • db::service accepts GetByQuery(service, database, query)
  • it routes it to proper database on request (instead manually copying interfaces)
  • db implements querying logics and returns response