~aleteoryx/muditaos

ref: 8dccfeef72f47319bff50fb9b3f3c6a97fc57c66 muditaos/module-db/queries/README.md -rw-r--r-- 432 bytes
8dccfeef — rrandomsky [MOS-1042] Fixed inability to save a contact that did not previously have a phone number 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