edgedb-python
edgedb-python copied to clipboard
The official Python client library for EdgeDB
Seeing as this client library does not yet support a query builder, I would love to be able to pass in dataclasses when I'm making queries with EdgeQL. It would...
The TS client library has a very cool auto-generated query builder. With python typing we could build the same type of functionality. Here is the TS docs: https://www.edgedb.com/docs/clients/01_js/generation
I created a small FastAPI application to check this behavior. edgedb schema: ``` module default { type DTime { required property created_on -> datetime { default := datetime_current(); }; }...
Hello, The following code extracted from [FastAPI tutorial](https://www.edgedb.com/docs/guides/tutorials/rest_apis_with_fastapi). ```python ... @router.post("/users", status_code=HTTPStatus.CREATED) async def post_user(user: RequestData) -> ResponseData: try: (created_user,) = await client.query( """ WITH new_user := (INSERT User {name...
Fixes https://github.com/edgedb/edgedb-python/issues/127
`Object.__hash__` takes into account all fetched pointers, essentially the hashing is similar to tuples. `Object.__eq__` and other compare operators compare by object's EdgeDB ID.
I am connecting to **EdgeDB-SERVER** in a **GCP VM**, using **FASTAPI**, code is given below API code file and edgedb.toml are already in the same directory. ``` conn = edgedb.connect()...
```python import asyncio import edgedb async def main(): client = edgedb.create_async_client("_localdev") async for tx in client.transaction(): async with tx: print(await tx.query_single("SELECT 123")) client.terminate() await client.aclose() asyncio.run(main()) ``` This fails with:...
Working towards https://github.com/edgedb/edgedb-python/issues/296