I see that in ForeignKey I can use either a string or reference, so
ForeignKey(MyModel.id) or ForeignKey('my_model.id'). Any advantage to using
one or the other? What's the recommended approach?
When using the string way, is it recommended to use the model name like
'MyModel.id' or table name like 'my_model.id'?
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.