SurrealDB endpoint URL, e.g. ws://127.0.0.1:8000/rpc.
OptionalnamespaceNamespace to use() after connecting.
OptionaldatabaseDatabase to use() after connecting.
OptionalusernameUsername for signin().
OptionalpasswordPassword for signin().
OptionalclientA pre-built Surreal instance. When provided, connect() uses it
directly (still calling signin()/use() when credentials/ns/db are
configured) and skips require('surrealdb'). Primarily for tests and
connection reuse.
Connection options for
SurrealStore.urlis the SurrealDB endpoint (e.g.ws://127.0.0.1:8000/rpcorhttp://127.0.0.1:8000).namespace/databaseselect the namespace and database touse()after connecting.username/passwordare the root (or scoped) credentials used tosignin(). A pre-builtSurrealclient can be supplied viaclientto bypass the lazyrequire('surrealdb').