NEW

SurrealDB 4 is here, introducing SurrealDB Earth and SurrealDS!

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 Query' 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 install SurrealDB or create your own connection 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.

THE PLATFORM

Everything an application and its agents know. Five surfaces, one engine.

IN PRODUCTION

Trusted at scale. Samsung, Nvidia, Verizon, Tencent, and Walmart run on SurrealDB.

14,000+

Developers building on SurrealDB Cloud

4M+

Developers building on SurrealDB worldwide

FROM THE TEAMS

SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.
Justin Foley

VP of Engineering, Later