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 2727
2828require __DIR__ . '/vendor/autoload.php ' ;
2929
30- use Amp \Loop ;
3130use Amp \Postgres ;
31+ use Revolt \EventLoop ;
3232
3333
3434function print_header ($ title )
@@ -58,7 +58,7 @@ function show_all_settings()
5858
5959 print_header ("Display all settings using `SHOW ALL` " );
6060
61- Loop ::run (function () {
61+ EventLoop ::run (function () {
6262
6363 // Connect to CrateDB's PostgreSQL interface.
6464 $ config = Postgres \ConnectionConfig::fromString ($ this ->dsn );
@@ -85,7 +85,7 @@ function ddl_dml_dql()
8585
8686 print_header ("Run DDL, DML, and DQL statements subsequently " );
8787
88- Loop ::run (function () {
88+ EventLoop ::run (function () {
8989
9090 // Connect to CrateDB's PostgreSQL interface.
9191 $ config = Postgres \ConnectionConfig::fromString ($ this ->dsn );
@@ -132,7 +132,7 @@ function use_pool()
132132
133133 print_header ("Using a connection pool " );
134134
135- Loop ::run (function () {
135+ EventLoop ::run (function () {
136136
137137 // Connect to CrateDB's PostgreSQL interface, using a connection pool.
138138 $ config = Postgres \ConnectionConfig::fromString ($ this ->dsn );
You can’t perform that action at this time.
0 commit comments