[Sqlalchemy-tickets] [sqlalchemy] #2843: Support for IF EXISTS/IF NOT EXISTS DDL constructs
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-10-17 02:17:24
|
#2843: Support for IF EXISTS/IF NOT EXISTS DDL constructs
-------------------------+-----------------------------------------
Reporter: remyroy | Owner: zzzeek
Type: enhancement | Status: new
Priority: low | Milestone:
Component: schema | Severity: no triage selected yet
Keywords: | Progress State: awaiting triage
-------------------------+-----------------------------------------
IF EXISTS and IF NOT EXISTS are already part of many DBMSs DDL vocabulary.
They have many use cases which are highly useful in some situations.
For instance, creating a table if it does not already exists or dropping a
column if it exists.
It would be nice to have those directives with standard SQLAlchemy DDL
methods. I guess they could be implemented using the native support for
DBMSs that support them or with some introspection for those that do not.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2843>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|