SurrealDB Docs Logo

Enter a search query

.Use()

Switch to a specific namespace and database.

Method Syntax
db.Use(namespace, database)

Arguments

ArgumentsDescription
namespace initially required

Switches to a specific namespace.

database initially required

Switches to a specific database.

Example usage

db.Use("test", "test");

On this page

© SurrealDB GitHub Discord Community Cloud Features Releases Install