You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromsurrealpy.wsimportSurrealClient, SurrealClientThreadfromsurrealpy.ws.modelsimportLoginParamsfromsurrealpy.builderimportTablefromtypingimportUnion# Create a new client to connect to SurrealDB# You can use SurrealClientThread for thread-safe clientclient: Union[SurrealClientSurrealClientThread] =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
The text was updated successfully, but these errors were encountered:
For example:
The implementation will depend on pymongo collection system
The text was updated successfully, but these errors were encountered: