~aleteoryx/muditaos

ref: 7897f863809a3fe98844c2a520249decffe069d9 muditaos/module-db/queries/README.md -rw-r--r-- 398 bytes
7897f863 — Adam Dobrowolski [EGD-8164] Multiple same popups can be stored 4 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