edgedb-python icon indicating copy to clipboard operation
edgedb-python copied to clipboard

The official Python client library for EdgeDB

Results 99 edgedb-python issues
Sort by recently updated
recently updated
newest added

The code generator currently generates to the project root by default with the `--file` option if no path is provided. Changing the default path to `dbschema` would provide consistency with...

The Python client does not currently support transaction savepoints, but they are an essential feature. For example it's currently impossible to recover from errors (e.g. `CardinalityViolationError`) within transactions - the...

enhancement

Hello. I could not find an any way to use edgedb.Set as query's parameter. How it supposed to annotate set of int64 (`$inp`)? ```python client.query('select 1 in $inp', inp=edgedb.Set({1,2,3})) edgedb.errors.QueryError:...

I'd like to continue the discussion started in https://github.com/edgedb/edgedb-python/pull/388. Paul shared a number of great thoughts in his comment https://github.com/edgedb/edgedb-python/pull/388#issuecomment-1298428420 and later Fantix and I had a quick 1:1 call...

Blocking client: ```python import edgedb import edgedb.ai c = edgedb.create_client() gpt4ai = edgedb.ai.create_AI(c, model="gpt-4-turbo-preview") blog_ai = gpt4ai.with_context(query="select BlogPost") print(blog_ai.query_rag("what's that?")) # or use event-stream: for data in blog_ai.stream_rag("what's that?"): print(data)...

Hi! thanks for bringing amazing database to the world! I'm looking for a way to contribute & help edgedb-python. so far, I succeeded to run `pip install -e .` but...

**Describe the bug** BlockingIOConnection throws when you try to connect to an IPv6 address **Reproduction** ```python import edgedb client = edgedb.create_client(dsn="edgedb://edgedb:edgedb@[::1]:5656/edgedb") client.ensure_connected() ``` Produces: ``` gaierror Traceback (most recent call...

Addresses #486 Uses [`socket.getaddrinfo`](https://docs.python.org/3/library/socket.html#socket.getaddrinfo) to get address family from provided host and port for the blocking client. This addresses the previous issue that only ipv4 clients were allowed.

This PR adds `EdgeDBAI.generate_embeddings()` function to allow users to generate embedding vectors without using the AI index in EdgeDB with custom input text. I'll create another PR to add docs.

**Describe the bug** I had a duplicate field in a query: ``` update PackageVersion filter .id = $id set { pkg := $package_id ?? .pkg, display_name := $display_name ?? .display_name,...