Skip to content

Commit

Permalink
Update README.md (surrealdb#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy authored May 14, 2024
1 parent 88a6081 commit 4823aa5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -127,4 +126,4 @@ $db->disconnect();
### Directory Structure

- `src` - The source code of the library
- `tests` - The unit tests of the library
- `tests` - The unit tests of the library

0 comments on commit 4823aa5

Please sign in to comment.