summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-07-19 23:50:00 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-07-19 23:50:00 +0000
commit80f2fdce7f47b5eb359ef0ebbe7d8711719ee5ca (patch)
treefbbc2c75c623233f69372869bf7e71c1931024d5 /lib/sqlalchemy/schema.py
parent934ac330ea812395b66f82e13afc034303bafc9c (diff)
downloadsqlalchemy-80f2fdce7f47b5eb359ef0ebbe7d8711719ee5ca.tar.gz
patch for [ticket:105], adding "owner" support to oracle...not tested yet
Diffstat (limited to 'lib/sqlalchemy/schema.py')
-rw-r--r--lib/sqlalchemy/schema.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py
index 6b44cda29..002ff2d36 100644
--- a/lib/sqlalchemy/schema.py
+++ b/lib/sqlalchemy/schema.py
@@ -140,6 +140,8 @@ class Table(SchemaItem, sql.TableClause):
the rest of the constructor arguments. If this flag and the "redefine" flag are not set, constructing
the same table twice will result in an exception.
+ owner=None : optional owning user of this table. useful for databases such as Oracle to aid in table
+ reflection.
"""
super(Table, self).__init__(name)
self._metadata = metadata
@@ -152,6 +154,7 @@ class Table(SchemaItem, sql.TableClause):
self.fullname = "%s.%s" % (self.schema, self.name)
else:
self.fullname = self.name
+ self.owner = kwargs.pop('owner', None)
self.kwargs = kwargs
def _set_primary_key(self, pk):