diff options
Diffstat (limited to 'lib/sqlalchemy/schema.py')
-rw-r--r-- | lib/sqlalchemy/schema.py | 3 |
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): |