Search the docs
Languages
/
Swift
Methods
The use() method for the SurrealDB Swift SDK switches to a specific namespace and database.
Switches the connection to a specific namespace and database.
Method Syntax
try await client.use(namespace: ns, database: db)
namespace
database
try await client.use(namespace: "myapp", database: "mydb")
Was this page helpful?
Previous
connect
Next
signin