diff --git a/session/engine/dbengine.py b/session/engine/dbengine.py index 3431ba4..ad27f00 100644 --- a/session/engine/dbengine.py +++ b/session/engine/dbengine.py @@ -54,7 +54,7 @@ class DatabaseEngine(object): 'postgresql': 'postgresql+psycopg2://{0}:{1}@{2}:{3}/{4}', 'oracle': 'oracle+cx_oracle://{0}:{1}@{2}:{3}/?service_name={4}' } - + # 连接池容器名称,具体看ObjContainer对象 attr = 'engines' def __init__(self, db_name, conf_path=DEFAULT_CONF_PATH): diff --git a/session/session.py b/session/session.py index 9cf2c3e..ef15731 100644 --- a/session/session.py +++ b/session/session.py @@ -91,6 +91,12 @@ class Sqlsession(object): def insert(self, sql): return self.executor.execute_update(sql) + def insert_batch(self, sql): + """ + todo implement + """ + pass + def update(self, sql): return self.executor.execute_update(sql)