diff --git a/README.md b/README.md index 53d94d1..e794e1e 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ from fudb.dbapis.fu_db_api import select_all, select_one, execute_update, batch_ execute_update(oracle_factory.get_conn(),'delete from test where id=1') # 批量插入 batch_insert(conn, 'oracle', 'into t_user (id,name,age) values %s', dds, 10) -# 注意:上述方法都会自动关闭连接,如果不想关闭的话可以参考源码进行修改 +# 注意:上述方法都会自动关闭连接,如果不想关闭的话可以参考源码进行修改 ``` ## 事务 ```python @@ -47,7 +47,7 @@ from fudb.dbapis.fu_db_api import select_all, select_one, execute_update, batch_ rt = conn.execute(text(sql)) # 提交 conn.commit() - # 返回受影响行数,可作为执行是否成功判断依据 + # 返回受影响行数,可作为执行是否成功判断依据 return rt.rowcount except Exception as e: # 回滚