• Start

Methods

use

The use() method for the SurrealDB Mojo SDK switches to a specific namespace and database.

Switches the connection to a specific namespace and database.

Method Syntax
client.use(namespace, database, session)

Argument

Description

namespace

The namespace to switch to.

database

The database to switch to.

session

An optional session id to scope the change to a specific session.

client.use("test", "test")

Was this page helpful?