Skip to content

Commit

Permalink
Update README.md (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy authored May 6, 2024
1 parent 248115c commit fa71b32
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,18 @@ const db = new Surreal();
// Connect to the database
await db.connect("http://127.0.0.1:8000/rpc");

// Signin as a namespace, database, or root user
await db.signin({
username: "root",
password: "root",
});

// Select a specific namespace / database
await db.use({
namespace: "test",
database: "test"
});

// Signin as a namespace, database, or root user
await db.signin({
username: "root",
password: "root",
});

// Create a new person with a random id
let created = await db.create("person", {
title: "Founder & CEO",
Expand Down

0 comments on commit fa71b32

Please sign in to comment.