Skip to content

Commit

Permalink
Add annotation on internal config that affects compilation (#6872)
Browse files Browse the repository at this point in the history
* __internal_testmode
* __internal_no_apply_query_rewrites
* __internal_query_reflschema
  • Loading branch information
fantix authored Feb 16, 2024
1 parent 7a1551a commit b364d27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion edb/buildmeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@


# Increment this whenever the database layout or stdlib changes.
EDGEDB_CATALOG_VERSION = 2024_02_14_00_00
EDGEDB_CATALOG_VERSION = 2024_02_16_00_00
EDGEDB_MAJOR_VERSION = 5


Expand Down
3 changes: 3 additions & 0 deletions edb/lib/_testmode.edgeql
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ ALTER TYPE cfg::AbstractConfig {

CREATE PROPERTY __internal_testmode -> std::bool {
CREATE ANNOTATION cfg::internal := 'true';
CREATE ANNOTATION cfg::affects_compilation := 'true';
SET default := false;
};

# Fully suppress apply_query_rewrites, like is done for internal
# reflection queries.
CREATE PROPERTY __internal_no_apply_query_rewrites -> std::bool {
CREATE ANNOTATION cfg::internal := 'true';
CREATE ANNOTATION cfg::affects_compilation := 'true';
SET default := false;
};

Expand All @@ -90,6 +92,7 @@ ALTER TYPE cfg::AbstractConfig {
# that are hidden in the public introspection schema.
CREATE PROPERTY __internal_query_reflschema -> std::bool {
CREATE ANNOTATION cfg::internal := 'true';
CREATE ANNOTATION cfg::affects_compilation := 'true';
SET default := false;
};

Expand Down

0 comments on commit b364d27

Please sign in to comment.