Allow specification of external metadata object to be used by the SQLAlchemy object. (issue #60)#61
Closed
nathan-rice wants to merge 1 commit intopallets-eco:masterfrom
nathan-rice:master
Closed
Allow specification of external metadata object to be used by the SQLAlchemy object. (issue #60)#61nathan-rice wants to merge 1 commit intopallets-eco:masterfrom nathan-rice:master
nathan-rice wants to merge 1 commit intopallets-eco:masterfrom
nathan-rice:master
Conversation
|
How to use this new feature? |
Author
|
when you create a database, the init method has an additional parameter, metadata. You can pass it like so: db = SQLAlchemy(app, metadata=your_metadata) |
|
+1. |
|
+1 |
Contributor
|
Fixed by #255 |
|
Any idea when this might be released? |
Contributor
|
I've been slammed on a project for a couple of months, but I'm getting ready to make the release ASAP; so within the next two weeks. |
|
Thanks. |
|
👍 Thanks man, it's really helpful. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I use my model definitions outside my web application, so being able to decouple them is nice. Also, I dislike circular references; I would prefer everything go model definition module -> web application module.