From c56634269339fcea9255002373561bb0ba61c404 Mon Sep 17 00:00:00 2001 From: Micha de Vries Date: Tue, 14 May 2024 09:41:49 +0200 Subject: [PATCH] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2e94271..5c05ded 100644 --- a/README.md +++ b/README.md @@ -100,12 +100,11 @@ $record = Surreal\Cbor\Types\RecordId::create("person", "john"); $person = $db->merge($record, ["age" => 31]); // Select all people records. -$record = Surreal\Cbor\Types\RecordId::create("person", "john"); -$people = $db->select($table); +$people = $db->select("person"); // Perform a custom advanced query. $groups = $db->query('SELECT marketing, count() FROM $tb GROUP BY marketing', [ - "tb" => "person" + "tb" => Surreal\Cbor\Types\Table::create("person") ]); // Close the connection between the application and the database. @@ -127,4 +126,4 @@ $db->disconnect(); ### Directory Structure - `src` - The source code of the library -- `tests` - The unit tests of the library \ No newline at end of file +- `tests` - The unit tests of the library