-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
For example:
from surrealpy.ws import SurrealClient, SurrealClientThread
from surrealpy.ws.models import LoginParams
from surrealpy.builder import Table
from typing import Union
# Create a new client to connect to SurrealDB
# You can use SurrealClientThread for thread-safe client
client: Union[SurrealClient SurrealClientThread] = SurrealClient("http://localhost:9000/rpc")
client.connect()
client.login(LoginParams(username="test",password="test"))
client.use(namespace="test",database="test")
users: Table = client["users"] # Will return an instance of table which initialize with "users" parameter (e.g: Table("users"))The implementation will depend on pymongo collection system
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
📋 Todo