Skip to content
NEW BENCHMARKS

SurrealDB 3.x by the numbers

View

1/3

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 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.

SurrealDB

The context layer for AI agents.

Documents, graphs, vectors, time-series, and memory - in one transaction, one query, one deployment.

Explore with AI

Independently verified

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

Trust Centre

Copyright © 2026 SurrealDB Ltd. Registered in England and Wales. Company no. 13615201

Registered address: 3rd Floor 1 Ashley Road, Altrincham, Cheshire, WA14 2DT, United Kingdom

Trading address: Huckletree Oxford Circus, 213 Oxford Street, London, W1D 2LG, United Kingdom