|latest/stable||316||11 Aug 2023|
|14/stable||288||18 Apr 2023|
|14/candidate||326||19 Sep 2023|
|14/beta||330||27 Sep 2023|
|14/edge||330||26 Sep 2023|
juju deploy postgresql --channel 14/stable
How to integrate DB with my charm
The most existing charms currently use ops-lib-pgsql interface (legacy). Canonical recommends for new charms to use data-platform-libs instead. You can take a look at postgresql-test-app and juju-sdk-tutorial-k8s for more practical examples (the branch
04_integrate_with_psql describes integration with Charmed PostgreSQL (read the great manual first). The legacy charm details are well described here.
- Q: Does the requirer need to set anything in relation data?
A: it depends on the interface. Check the
- Q: Is there a charm library available, or does my charm need to compile the postgresql relation data on its own?
A: Yes, the library is available: data-platform-libs. The integration is trivial: example.
- Q: How do I obtain the database url/uri?
A: it is planned, but currently missing. Meanwhile use this example, or follow:
Contact us if you have any questions, issues and/or ideas!