Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a5a400

Browse files
committed
update 替换底层Connection 在查询事件结束时执行事件将$statement传递出去使用
该做法应能解决查询之后不能执行存储过程 & 方便转Json行为
1 parent17e9b92 commit6a5a400

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+
namespaceApp\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+
publicfunction__construct($connection,$statement)
36+
{
37+
$this->statement =$statement;
38+
$this->connection =$connection;
39+
}
40+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp