SurrealDB Docs Logo

Enter a search query

.close()

Closes the persistent connection to the database.

Method Syntax
db.close()

Example usage

await db.close();