File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 27
27
28
28
require __DIR__ . '/vendor/autoload.php ' ;
29
29
30
- use Amp \Loop ;
31
30
use Amp \Postgres ;
31
+ use Revolt \EventLoop ;
32
32
33
33
34
34
function print_header ($ title )
@@ -58,7 +58,7 @@ function show_all_settings()
58
58
59
59
print_header ("Display all settings using `SHOW ALL` " );
60
60
61
- Loop ::run (function () {
61
+ EventLoop ::run (function () {
62
62
63
63
// Connect to CrateDB's PostgreSQL interface.
64
64
$ config = Postgres \ConnectionConfig::fromString ($ this ->dsn );
@@ -85,7 +85,7 @@ function ddl_dml_dql()
85
85
86
86
print_header ("Run DDL, DML, and DQL statements subsequently " );
87
87
88
- Loop ::run (function () {
88
+ EventLoop ::run (function () {
89
89
90
90
// Connect to CrateDB's PostgreSQL interface.
91
91
$ config = Postgres \ConnectionConfig::fromString ($ this ->dsn );
@@ -132,7 +132,7 @@ function use_pool()
132
132
133
133
print_header ("Using a connection pool " );
134
134
135
- Loop ::run (function () {
135
+ EventLoop ::run (function () {
136
136
137
137
// Connect to CrateDB's PostgreSQL interface, using a connection pool.
138
138
$ config = Postgres \ConnectionConfig::fromString ($ this ->dsn );
You can’t perform that action at this time.
0 commit comments