dnwpark

Results 43 issues of dnwpark

Related #8740 Allows the definition of ai embedding indexes using a uri: ``` type Astronomy { content: str; deferred index ext::ai::index(embedding_model := 'openai:text-embedding-3-small') on (.content); } ``` When parsing a...

Predicates are useful, but often determining whether something can be parsed often involves actually doing redundant work. For example, you may have a rule `INT `, and want to ensure...

Allows queries such as `std.if_else(default.Foo, std.count(default.Foo) < 10, default.Bar)`.

Previously all results of `std.union(default.Foo, default.Bar)` would be decoded as `Foo`

Given a schema: ```edgeql function MaybeInt() -> optional int64 using (1); ``` Trying to query a call to the function: ```py result = self.client.query(default.MaybeInt()) ``` Fails typechecking with the error:...

bug
ORM

Using the orm_qb schema, the following code: ```py from models.orm_qb import default, std class Inh_A_WithComputed(default.Inh_A): n: std.int64 result = self.client.query(Inh_A_WithComputed) ``` Fails typecheck with: ``` error: Need type annotation for...

bug
ORM

Using the `orm_qb` schema, the following code: ```py from models.orm_qb import default, std class Inh_A_WithComputed(default.Inh_A): n: std.int64 result = self.client.query(Inh_A_WithComputed.select(n=lambda x: x.a + 1000)) ``` Will produce results like: ```py...

bug
ORM

Add tests that check the number of queries and the objects updated when using sync. Todo: - checking timing - triggers and rewrites