Skip to content

Commit

Permalink
改进Connection类
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jun 3, 2018
1 parent ca349e6 commit 70e19a0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,34 @@ public function getFieldsType($tableName)
return $this->getTableInfo($tableName, 'type');
}

/**
* 启动事务
* @access public
* @return void
* @throws \PDOException
* @throws \Exception
*/
public function startTrans()
{}

/**
* 用于非自动提交状态下面的查询提交
* @access public
* @return void
* @throws PDOException
*/
public function commit()
{}

/**
* 事务回滚
* @access public
* @return void
* @throws PDOException
*/
public function rollback()
{}

/**
* 析构方法
* @access public
Expand Down

0 comments on commit 70e19a0

Please sign in to comment.