diff --git a/README.md b/README.md index 5023e09..7f82dd5 100644 --- a/README.md +++ b/README.md @@ -34,16 +34,17 @@ Once [installed](#install), you can use the following code to connect to your local ClickHouse database and send some queries: ```php -$loop = React\EventLoop\Factory::create(); -$client = new Clue\React\ClickHouse\Client('http://localhost:8123/', $loop); +query('SELECT id, name FROM users')->then(function (Clue\React\ClickHouse\Result $result) { var_dump($result); }, function (Exception $e) { echo 'Error: ' . $e->getMessage() . PHP_EOL; }); - -$loop->run(); ``` ## Install