~aleteoryx/muditaos

ref: eca248c6884d9a1e85d05f7ef79670763f1579af muditaos/module-db/queries/README.md -rw-r--r-- 432 bytes
eca248c6 — Marcin Zieliński [MOS-35] Add more input modes for USSD reply 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