Content-Length: 311961 | pFad | http://github.com/APIJSON/hyperf-APIJSON/commit/ea6d55a665e090ba431a901f993139ff42e04fcb

81 Merge pull request #19 from kvnZero/feat/替换底层Connection · APIJSON/hyperf-APIJSON@ea6d55a · GitHub
Skip to content

Commit ea6d55a

Browse files
authored
Merge pull request kvnZero#19 from kvnZero/feat/替换底层Connection
update 替换底层Connection 在查询事件结束时执行事件将$statement传递出去使用
2 parents 17e9b92 + 6a5a400 commit ea6d55a

File tree

3 files changed

+1244
-0
lines changed

3 files changed

+1244
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
4+
declare(strict_types=1);
5+
/**
6+
* @author kvnZero
7+
* @contact kvnZero@github.com
8+
* @time 2021/12/4 5:25 下午
9+
*/
10+
11+
namespace App\Event\ApiJson;
12+
13+
class StatementComplete
14+
{
15+
/**
16+
* The database connection instance.
17+
*
18+
* @var \Hyperf\Database\Connection
19+
*/
20+
public $connection;
21+
22+
/**
23+
* The PDO statement.
24+
*
25+
* @var \PDOStatement
26+
*/
27+
public $statement;
28+
29+
/**
30+
* Create a new event instance.
31+
*
32+
* @param \Hyperf\Database\Connection $connection
33+
* @param \PDOStatement $statement
34+
*/
35+
public function __construct($connection, $statement)
36+
{
37+
$this->statement = $statement;
38+
$this->connection = $connection;
39+
}
40+
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/APIJSON/hyperf-APIJSON/commit/ea6d55a665e090ba431a901f993139ff42e04fcb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy