Skip to content

Commit 70e19a0

Browse files
committed
改进Connection类
1 parent ca349e6 commit 70e19a0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/Connection.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,34 @@ public function getFieldsType($tableName)
14311431
return $this->getTableInfo($tableName, 'type');
14321432
}
14331433

1434+
/**
1435+
* 启动事务
1436+
* @access public
1437+
* @return void
1438+
* @throws \PDOException
1439+
* @throws \Exception
1440+
*/
1441+
public function startTrans()
1442+
{}
1443+
1444+
/**
1445+
* 用于非自动提交状态下面的查询提交
1446+
* @access public
1447+
* @return void
1448+
* @throws PDOException
1449+
*/
1450+
public function commit()
1451+
{}
1452+
1453+
/**
1454+
* 事务回滚
1455+
* @access public
1456+
* @return void
1457+
* @throws PDOException
1458+
*/
1459+
public function rollback()
1460+
{}
1461+
14341462
/**
14351463
* 析构方法
14361464
* @access public

0 commit comments

Comments
 (0)