How to use compile checked queries in shared libs #2983
Unanswered
pascalporedda
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently working on a client project where they build upon a event-driven microservice structure. Each service has a dedicated database with it's own database url. Now these service have to share a "common" logic for storing a specific data model.
My initial thought was to store the implementation of saving / deleting inside a dedicated lib that is shared via the Cargo workspace. So far that works, but one problem I'm dealing with is the setting the DATABASE URL for this library.
Since in fact it doesn't have it's own database.
My thoughts on resolving this:
Beta Was this translation helpful? Give feedback.
All reactions