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

```python title="Method Syntax"
client.use(namespace, database, session)
```

## Arguments

<table>
    <thead>
        <tr>
            <th colspan="2" scope="col">Argument</th>
            <th colspan="2" scope="col">Description</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td colspan="2" scope="row" data-label="Argument"><code>namespace</code></td>
            <td colspan="2" scope="row" data-label="Description">The namespace to switch to.</td>
        </tr>
        <tr>
            <td colspan="2" scope="row" data-label="Argument"><code>database</code></td>
            <td colspan="2" scope="row" data-label="Description">The database to switch to.</td>
        </tr>
        <tr>
            <td colspan="2" scope="row" data-label="Argument"><code>session</code></td>
            <td colspan="2" scope="row" data-label="Description">An optional session id to scope the change to a specific session.</td>
        </tr>
    </tbody>
</table>

## Example usage

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