Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
chore: update charm libraries (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: Github Actions <[email protected]>
  • Loading branch information
github-actions[bot] and Github Actions authored Apr 28, 2023
1 parent a1c09bc commit 889241e
Show file tree
Hide file tree
Showing 6 changed files with 1,832 additions and 758 deletions.
14 changes: 10 additions & 4 deletions lib/charms/data_platform_libs/v0/database_requires.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Relation 'requires' side abstraction for database relation.
"""[DEPRECATED] Relation 'requires' side abstraction for database relation.
This library is a uniform interface to a selection of common database
metadata, with added custom events that add convenience to database management,
Expand All @@ -23,7 +23,10 @@
```python
from charms.data_platform_libs.v0.database_requires import DatabaseRequires
from charms.data_platform_libs.v0.database_requires import (
DatabaseCreatedEvent,
DatabaseRequires,
)
class ApplicationCharm(CharmBase):
# Application charm that connects to database charms.
Expand Down Expand Up @@ -84,7 +87,10 @@ def _on_database_created(self, event: DatabaseCreatedEvent) -> None:
```python
from charms.data_platform_libs.v0.database_requires import DatabaseRequires
from charms.data_platform_libs.v0.database_requires import (
DatabaseCreatedEvent,
DatabaseRequires,
)
class ApplicationCharm(CharmBase):
# Application charm that connects to database charms.
Expand Down Expand Up @@ -154,7 +160,7 @@ def _on_cluster2_database_created(self, event: DatabaseCreatedEvent) -> None:

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version.
LIBPATCH = 4
LIBPATCH = 5

logger = logging.getLogger(__name__)

Expand Down
Loading

0 comments on commit 889241e

Please sign in to comment.