summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-04-03 01:35:48 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-04-03 01:35:48 +0000
commitc026339ad81dc3fc225330e9c1d383821b4e29de (patch)
tree11042e1fb57fba1b9f4eb703de30586dd5283752 /lib/sqlalchemy/databases
parentcc35495023e8ad6fdbb49dcc4ff0b72d6f6f1d26 (diff)
downloadsqlalchemy-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/databases')
-rw-r--r--lib/sqlalchemy/databases/__init__.py2
-rw-r--r--lib/sqlalchemy/databases/information_schema.py12
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/__init__.py b/lib/sqlalchemy/databases/__init__.py
index 10cf9f6b2..f009034c7 100644
--- a/lib/sqlalchemy/databases/__init__.py
+++ b/lib/sqlalchemy/databases/__init__.py
@@ -5,4 +5,4 @@
# the MIT License: http://www.opensource.org/licenses/mit-license.php
-__all__ = ['oracle', 'postgres', 'sqlite', 'mysql'] \ No newline at end of file
+__all__ = ['oracle', 'postgres', 'sqlite', 'mysql', 'mssql']
diff --git a/lib/sqlalchemy/databases/information_schema.py b/lib/sqlalchemy/databases/information_schema.py
index feb3cf0c5..468e9a548 100644
--- a/lib/sqlalchemy/databases/information_schema.py
+++ b/lib/sqlalchemy/databases/information_schema.py
@@ -56,6 +56,18 @@ gen_key_constraints = schema.Table("key_column_usage", generic_engine,
Column("constraint_name", String),
schema="information_schema")
+gen_ref_constraints = schema.Table("referential_constraints", generic_engine,
+ Column("constraint_catalog", String),
+ Column("constraint_schema", String),
+ Column("constraint_name", String),
+ Column("unique_constraint_catlog", String),
+ Column("unique_constraint_schema", String),
+ Column("unique_constraint_name", String),
+ Column("match_option", String),
+ Column("update_rule", String),
+ Column("delete_rule", String),
+ schema="information_schema")
+
class ISchema(object):
def __init__(self, engine):
self.engine = engine