[Checkins] SVN: z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/ Added dropTable and getEngineForTable to the IAlchemy interface

Jürgen Kartnaller juergen at kartnaller.at
Fri May 26 05:03:05 EDT 2006


Log message for revision 68304:
  Added dropTable and getEngineForTable to the IAlchemy interface

Changed:
  U   z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/datamanager.py
  U   z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/interfaces.py

-=-
Modified: z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/datamanager.py
===================================================================
--- z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/datamanager.py	2006-05-26 08:55:41 UTC (rev 68303)
+++ z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/datamanager.py	2006-05-26 09:03:05 UTC (rev 68304)
@@ -87,10 +87,6 @@
 
 
 def getEngineForTable(t):
-
-    """returns an sqlalchemy engine for the given table name, this is
-    usefull for using the engine to execute literal sql statements"""
-    
     name = _tableToEngine[t]
     util = getUtility(IAlchemyEngineUtility, name=name)
     return util.getEngine()

Modified: z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/interfaces.py
===================================================================
--- z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/interfaces.py	2006-05-26 08:55:41 UTC (rev 68303)
+++ z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/interfaces.py	2006-05-26 09:03:05 UTC (rev 68304)
@@ -99,3 +99,19 @@
             Name of the engine utility.
         """
 
+    def dropTable(table, engine=''):
+        """Drop a table.
+
+        Drops the table immediately without the need of a session.
+
+        table :
+            Name of the table.
+        engine :
+            Name of the engine utility.
+        """
+
+    def getEngineForTable(t):
+        """returns an sqlalchemy engine for the given table name, this is
+           usefull for using the engine to execute literal sql statements
+        """
+



More information about the Checkins mailing list