Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
c5844eb
Remove disallow_module
aljazerzen Sep 8, 2025
e8b39c8
Revert "Remove disallow_module"
aljazerzen Sep 8, 2025
0094631
Remove support for __current__
aljazerzen Sep 11, 2025
090e1ce
Replace get_operators by get_by_shortname
aljazerzen Sep 11, 2025
766d033
Replace get_functions with Schema.get_by_shortname
aljazerzen Sep 11, 2025
7c3659b
Simplify _get_global into get_by_global_name
aljazerzen Sep 12, 2025
ccf0762
Optimization: _raw_schema_restore
aljazerzen Sep 12, 2025
c0995b1
Fix s_schema.lookup
aljazerzen Sep 12, 2025
f546564
Replace _get with s_schema.lookup
aljazerzen Sep 12, 2025
b7cc00e
Pull get_casts* methods from FlatSchema to Schema
aljazerzen Sep 12, 2025
1cb64cb
Tweak get() signature
aljazerzen Sep 12, 2025
74416ae
Replace a few .get with .get_fully_qualified
aljazerzen Sep 22, 2025
6485105
Pull add into Schema
aljazerzen Sep 22, 2025
385c4c5
Pull get_obj_data_raw into Schema
aljazerzen Sep 22, 2025
8072269
Pull get_by_id into Schema
aljazerzen Sep 22, 2025
93f801f
Revert "Pull get_by_id into Schema"
aljazerzen Sep 22, 2025
329e091
minor fix
aljazerzen Sep 23, 2025
0474076
fix expr.py
aljazerzen Sep 23, 2025
ff5710b
fix
aljazerzen Sep 23, 2025
831a533
add a few type annos
aljazerzen Sep 24, 2025
265a83e
Pull discard into Schema
aljazerzen Sep 24, 2025
2ec32cb
Rename get_by_fully_qualified to get_by_name
aljazerzen Sep 24, 2025
e7b8ae6
Pull has_module and has_migration to Schema
aljazerzen Sep 24, 2025
692834e
Pull get_objects into Schema
aljazerzen Sep 25, 2025
9ba2c47
Pull get_modules and get_last_migration to Schema
aljazerzen Sep 25, 2025
1fc1c6e
Revert "fix expr.py"
aljazerzen Sep 30, 2025
82da28e
Revert "Replace a few .get with .get_fully_qualified"
aljazerzen Sep 30, 2025
add039a
Reorder a few Schema methods, add doc string
aljazerzen Sep 30, 2025
95663eb
Schema.fetch
aljazerzen Sep 30, 2025
a18ca33
.
aljazerzen Oct 1, 2025
1389476
Merge remote-tracking branch 'origin/master' into schema-interface
aljazerzen Oct 8, 2025
39d7b4d
Merge remote-tracking branch 'origin/master' into schema-interface
aljazerzen Oct 8, 2025
1d3a3d8
Replace type annotations of FlatSchema with Schema
aljazerzen Sep 26, 2025
ae019e0
edgeql.ast.Language.EdgeQL
aljazerzen Sep 24, 2025
7c2a676
rename get_obj_data_raw
aljazerzen Oct 9, 2025
3153872
Schema.fetch_by_shortname
aljazerzen Oct 9, 2025
1cb43ff
fix
aljazerzen Oct 14, 2025
24ebcd9
fix
aljazerzen Oct 14, 2025
3e1dcb3
Merge remote-tracking branch 'origin/master' into refactor-schema
aljazerzen Oct 15, 2025
e47a67b
Push add_raw down into FlatSchema and RustSchema
aljazerzen Oct 10, 2025
fef3d7d
remove _obj_ from schema names
aljazerzen Oct 21, 2025
49273a0
revert naming schema back to `get`
aljazerzen Oct 23, 2025
841c058
rust schema
aljazerzen Oct 9, 2025
2fbd8b6
cached imports
aljazerzen Oct 10, 2025
67510a0
rc object containers
aljazerzen Oct 10, 2025
4b4afc8
Push add_raw down into FlatSchema and RustSchema
aljazerzen Oct 10, 2025
dbeeccc
Remove reducing
aljazerzen Oct 10, 2025
d65db15
Remove schema restoring
aljazerzen Oct 13, 2025
17c1394
remove FlatSchema and abc.Reducible
aljazerzen Oct 13, 2025
58e1f50
replace im with im-rc
aljazerzen Oct 22, 2025
6b2d743
rename a few methods
aljazerzen Oct 22, 2025
408bd09
rc and release build
aljazerzen Oct 22, 2025
1c96f3b
more rc
aljazerzen Oct 23, 2025
15e1372
fix renaming (again)
aljazerzen Oct 23, 2025
c76b80d
a few fixes
aljazerzen Oct 24, 2025
1b99381
RustSchemaError
aljazerzen Oct 27, 2025
14858fb
clippy
aljazerzen Oct 27, 2025
4cb4064
span
aljazerzen Oct 28, 2025
a4adf9f
replace Rc with Arc
aljazerzen Nov 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 135 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ members = [
"edb/edgeql-parser",
"edb/edgeql-parser/edgeql-parser-derive",
"edb/edgeql-parser/edgeql-parser-python",
"edb/schema/rust",
"edb/graphql-rewrite",
"edb/server/_rust_native",
"rust/conn_pool",
Expand Down
2 changes: 1 addition & 1 deletion edb/buildmeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
# The merge conflict there is a nice reminder that you probably need
# to write a patch in edb/pgsql/patches.py, and then you should preserve
# the old value.
EDGEDB_CATALOG_VERSION = 2025_10_10_00_00
EDGEDB_CATALOG_VERSION = 2025_10_14_00_00
EDGEDB_MAJOR_VERSION = 8


Expand Down
2 changes: 1 addition & 1 deletion edb/edgeql/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ class DropRewrite(DropObject, RewriteCommand):

class Language(s_enum.StrEnum):
SQL = 'SQL'
EdgeQL = 'EDGEQL'
EdgeQL = 'EdgeQL'


class FunctionCode(DDL):
Expand Down
4 changes: 3 additions & 1 deletion edb/edgeql/compiler/astutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from edb.edgeql import qltypes

from edb.schema import name as sn
from edb.schema import functions as s_func

if TYPE_CHECKING:

Expand Down Expand Up @@ -248,8 +249,9 @@ def _get_functions_from_call(
else:
funcname = sn.QualName(*expr.func)

return ctx.env.schema.get_functions(
return s_func.lookup_functions(
funcname,
default=(),
module_aliases=ctx.modaliases,
schema=ctx.env.schema,
)
8 changes: 6 additions & 2 deletions edb/edgeql/compiler/clauses.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from edb import errors
from edb.ir import utils as irutils
from edb.schema import name as sn
from edb.schema import operators as s_oper

from . import context
from . import dispatch
Expand Down Expand Up @@ -135,8 +136,11 @@ def compile_orderby_clause(
op_name = '>'
else:
op_name = '<'
opers = env.schema.get_operators(
op_name, module_aliases=exprctx.modaliases)
opers = s_oper.lookup_operators(
op_name,
module_aliases=exprctx.modaliases,
schema=env.schema
)

# Verify that a comparison operator is defined for 2
# sort_type expressions.
Expand Down
Loading