Skip to content

Comments

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)#61
nathan-rice wants to merge 1 commit intopallets-eco:masterfrom
nathan-rice:master

Conversation

@nathan-rice
Copy link

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.

@benluo
Copy link

benluo commented Dec 12, 2011

How to use this new feature?

@nathan-rice
Copy link
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)

@nathan-rice nathan-rice reopened this Dec 12, 2011
@timstaley
Copy link

+1.

@lkreft
Copy link

lkreft commented Jan 9, 2015

+1

@immunda
Copy link
Contributor

immunda commented Jun 9, 2015

Fixed by #255

@immunda immunda closed this Jun 9, 2015
@jimfulton
Copy link

Any idea when this might be released?

@immunda
Copy link
Contributor

immunda commented Jun 17, 2015

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.

@jimfulton
Copy link

Thanks.

@edouardberthe
Copy link

👍 Thanks man, it's really helpful.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

7 participants