diff options
| author | Jason Kirtland <jek@discorporate.us> | 2008-12-11 22:09:12 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2008-12-11 22:09:12 +0000 |
| commit | 8d3fab1250fdb9e5cf389fcfa6a8c5f7f0ebbded (patch) | |
| tree | 6504f1ebba8f31bd69478c52b1facbc35dc457eb /lib/sqlalchemy/schema.py | |
| parent | f334da1f6b7cbe34567776abf67fab86580fadf2 (diff) | |
| download | sqlalchemy-8d3fab1250fdb9e5cf389fcfa6a8c5f7f0ebbded.tar.gz | |
Index entries for thread safety.
Diffstat (limited to 'lib/sqlalchemy/schema.py')
| -rw-r--r-- | lib/sqlalchemy/schema.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index c96d8adf4..da534a2fa 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -1443,12 +1443,13 @@ class MetaData(SchemaItem): """A collection of Tables and their associated schema constructs. Holds a collection of Tables and an optional binding to an ``Engine`` or - ``Connection``. If bound, the :class:`~sqlalchemy.schema.Table` objects in the - collection and their columns may participate in implicit SQL execution. + ``Connection``. If bound, the :class:`~sqlalchemy.schema.Table` objects + in the collection and their columns may participate in implicit SQL + execution. - The `Table` objects themselves are stored in the `metadata.tables` + The `Table` objects themselves are stored in the `metadata.tables` dictionary. - + The ``bind`` property may be assigned to dynamically. A common pattern is to start unbound and then bind later when an engine is available:: @@ -1461,6 +1462,10 @@ class MetaData(SchemaItem): MetaData is a thread-safe object after tables have been explicitly defined or loaded via reflection. + + .. index:: + single: thread safety; MetaData + """ __visit_name__ = 'metadata' |
