surrealdb.py
surrealdb.py copied to clipboard
SurrealDB SDK for Python
### Describe the bug The `Surreal.patch` method is currently broken due to the wrong method name being used in the request. It is also wrongly typed, the expected input should...
## What is the motivation? Reducing code duplication. Removes risk of forgetting to change `set` when changing `let` ## Type of Change - [ ] 📚 Examples / docs /...
### Description I wanted to contribute to the project, starting with some minor fixes (e.g. typing), but I didn't find any instruction for a local dev setup. So I had...
Change request method type from "modify" to "patch". And fix type annotations. ## What is the motivation? `Surreal.patch` is currently not usable. Fixing type annotations improved developer experience. ## Type...
### Describe the bug Most methods return annotations are `List[Dict[str, Any]]`. This is correct when querying for (potentially) multiple items like `Surreal.select("table")`, without supplying a specific ID. This is incorrect...
Change some return types from `List[Dict, Any]` to `Unions[Dict[str, Any], List[Dict, Any]]`, or the Optional[...], variant of that. ## What is the motivation? Fix the currently incomplete/wrong return type annotations...
Response message "Method not found" is received with error_code "SurrealPermissionException", so I guess the method="change" is obsolete. Thank you for submitting this pull request! We appreciate you spending the time...
### Is your feature request related to a problem? This would help users more easily get started with SurrealDB by importing data from in-memory formats. > Is there any chance...
### Description What are your opinions on the python versions that should be supported by this library? Asking this question due to the usage of deprecated typehinting annotations such as...
### Describe the bug Using the `query()` method, occasionally I will get a `URL component 'query' too long` error (httpx module) **Traceback** ```2024-02-06 19:15:44,231 ERROR:An error occurred: URL component 'query'...