Commit Graph

5 Commits

Author SHA1 Message Date
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 0d6ef1e8ac [dbi] add database backend json
Add json based database backend.

TODO: add example json interface
2022-09-12 00:04:54 +02:00
Alexander Couzens c54fb59a87 [dbi]: make all db functions optional
Allow database driver to only implement parts of the database driver.
In preprataion of the json interface which will only implement
session_data as might only be used by the PCRF.
2022-09-11 19:29:04 +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 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