diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-04-03 01:35:48 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-04-03 01:35:48 +0000 |
| commit | c026339ad81dc3fc225330e9c1d383821b4e29de (patch) | |
| tree | 11042e1fb57fba1b9f4eb703de30586dd5283752 /lib/sqlalchemy/schema.py | |
| parent | cc35495023e8ad6fdbb49dcc4ff0b72d6f6f1d26 (diff) | |
| download | sqlalchemy-c026339ad81dc3fc225330e9c1d383821b4e29de.tar.gz | |
merged Rick Morrison / Runar Petursson's MS-SQL module, with adjustments to alias schema-qualified Table objects
Diffstat (limited to 'lib/sqlalchemy/schema.py')
| -rw-r--r-- | lib/sqlalchemy/schema.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 756c03b6e..eabfee9bb 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -256,7 +256,7 @@ class Column(sql.ColumnClause, SchemaItem): default=None : a scalar, python callable, or ClauseElement representing the "default value" for this column, which will be invoked upon insert if this column is not present in the insert list or is given a value of None. - + hidden=False : indicates this column should not be listed in the table's list of columns. Used for the "oid" column, which generally isnt in column lists. @@ -271,7 +271,9 @@ class Column(sql.ColumnClause, SchemaItem): indexed in a unique index . Pass true to autogenerate the index name. Pass a string to specify the index name. Multiple columns that specify the same index name will all be included in the index, in the - order of their creation. """ + order of their creation. + + """ name = str(name) # in case of incoming unicode super(Column, self).__init__(name, None, type) @@ -507,6 +509,7 @@ class Sequence(DefaultGenerator): """calls the visit_seauence method on the given visitor.""" return visitor.visit_sequence(self) + class Index(SchemaItem): """Represents an index of columns from a database table """ |
