Commit Graph

6 Commits

Author SHA1 Message Date
Alexander Couzens 1151c6ac0f [dbi]: allow to build without mongodb
The tests won't be build as they depend on mongodb.
To build without mongodb do

meson configure -Dmongodb=false
2022-09-12 00:04:54 +02:00
Alexander Couzens 9d7737c4b7 [dbi] session_data(): add argument charging characteristics
Add the charging characteristics to the dbi function to allow the
backend to decide the profile based on it.
The charging characteristics can be filled by the HSS and will
be passed by the PCEF towards the PCRF.

This is an API dbi breakage.
2022-09-12 00:04:54 +02:00
Alexander Couzens 0e0de176fe [dbi]: make ogs_dbi_final depend on the selected database driver 2022-09-11 19:29:04 +02:00
Alexander Couzens f0c97bff19 [dbi]: mongo: merge all parts from ogs_dbi_final() into ogs_mongoc_final()
Nobody is calling ogs_mongoc_final() directly. In preparation of making ogs_dbi_final() more generic
2022-09-11 19:29:04 +02:00
Alexander Couzens 9c66348213 [dbi]: introduce an abstraction layer to allow multiple database backends
The current dbi only supports a single database backend. Add
an abstraction layer to allow multiple database backends.
Introduce a dbi backend struct containing all database functions.
2022-09-11 19:29:04 +02:00
Alexander Couzens 68efeac909 [dbi]: move all mongo related files into subdirectory 2022-09-11 19:29:04 +02:00