Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Add check for database connection #21

Open
RamiAwar opened this issue Apr 15, 2021 · 1 comment
Open

Add check for database connection #21

RamiAwar opened this issue Apr 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@RamiAwar
Copy link
Owner

🚀 Feature Request

Raise error if database connection is not configured

🔈 Motivation

Currently, mongomantic does not raise any errors if a mongodb connection is not established. This should be done as soon as any db calls are attempted.

🛰 Alternatives

Provide default arguments? Nah.

@RamiAwar RamiAwar added the enhancement New feature or request label Apr 15, 2021
@github-actions
Copy link

Hello @RamiAwar, thank you for your interest in our work!

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant