Installation
Install the SDK from pkg.go.dev using go get:
Then import the SDK and its models package in your Go files:
The surrealdb package contains the client, query functions, and authentication methods. The models package contains value types such as RecordID, Table, and UUID.
Requirements
Go
1.23or laterSurrealDB
v2.xorv3.x
Next steps
Quick start to build your first application
Connecting to SurrealDB for connection protocols and configuration