NEW

The wait is over. SurrealDB 3.0 is here!

Learn more
Course content preview

1: Connecting to a database

The examples in this course are inside mini windows of their own that look like this...

-- Returns a string
"Click on the 'Run in Surrealist' button to run this query!";

-- Also returns a string
RETURN
"Results display without needing the RETURN keyword, " +
"but you can add it if you want";

...and this.

"Just don't forget"
"the semicolon between statements"
"or you will get an error."
"Add some semicolons to make these statements work!"

You don't need to think about installing SurrealDB or starting a connection of your own to run any of them.

But you can also run the examples in a more manual way, if you prefer. Here is how to do it.