pcrf_json_dbi #1

Open
acouzens wants to merge 12 commits from pcrf_json_dbi into main
Owner

@pespin can you take a look on this PR?

@pespin can you take a look on this PR?
acouzens added 12 commits 2022-09-11 21:47:37 +00:00
c72f41fdd3 [dbi]: ogs_mongoc.h: remove include <mongoc.h>
To allow the include to work even when build without mongo installed.
No data types require mongoc.h to be in ogs_mongoc.h.
8b3abcce2d [dbi]: ogs-dbi.h: add comment to the include of ogs-mongoc.h
The only user of ogs-mongoc.h are the tests. Add comment
to remove the comment as soon they aren't depend on the ogs-mongoc.h
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.
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
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.
973c64804a [dbi] add database backend json
Add json based database backend.

TODO: add example json interface
eabb847a48 [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.
6b1813131c [app/pcrf]: parse json database configuration
To make use of the new json database backend, allow the pcrf to
parse json backend configuration.
0accea361c [pcrf]: Gx: parse 3GPP Charging Characteristic
Also pass the 3GPP-Charging-Characteristics to the dbi session_data call
d973dc1eea [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
acouzens force-pushed pcrf_json_dbi from d973dc1eea to 1151c6ac0f 2022-09-11 22:05:11 +00:00 Compare
This pull request can be merged automatically.
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b pcrf_json_dbi main
git pull origin pcrf_json_dbi

Step 2:

Merge the changes and update on Gitea.
git checkout main
git merge --no-ff pcrf_json_dbi
git push origin main
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: acouzens/open5gs#1
No description provided.