code
stringlengths
26
870k
docstring
stringlengths
1
65.6k
func_name
stringlengths
1
194
language
stringclasses
1 value
repo
stringlengths
8
68
path
stringlengths
5
194
url
stringlengths
46
254
license
stringclasses
4 values
def test_edgeql_syntax_ddl_global_03(self): """ CREATE GLOBAL Foo { USING (SELECT User); }; ALTER GLOBAL Foo USING (SELECT Person); DROP GLOBAL Foo; % OK % CREATE GLOBAL Foo := (SELECT User); ALTER GLOBAL Foo USING (SELECT Person); DROP GLOBAL Foo; """
CREATE GLOBAL Foo { USING (SELECT User); }; ALTER GLOBAL Foo USING (SELECT Person); DROP GLOBAL Foo; % OK % CREATE GLOBAL Foo := (SELECT User); ALTER GLOBAL Foo USING (SELECT Person); DROP GLOBAL Foo;
test_edgeql_syntax_ddl_global_03
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_global_04(self): """ CREATE GLOBAL foo -> str { SET DEFAULT := '20'; CREATE ANNOTATION title := 'foo'; }; """
CREATE GLOBAL foo -> str { SET DEFAULT := '20'; CREATE ANNOTATION title := 'foo'; };
test_edgeql_syntax_ddl_global_04
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_global_05(self): """ CREATE REQUIRED GLOBAL foo -> str { CREATE ANNOTATION title := 'foo'; SET default := 'lol'; }; """
CREATE REQUIRED GLOBAL foo -> str { CREATE ANNOTATION title := 'foo'; SET default := 'lol'; };
test_edgeql_syntax_ddl_global_05
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_global_06(self): """ ALTER GLOBAL foo { set default := '10'; using (20); reset default; rename to bar; set required; set single; reset cardinality; reset optionality; reset expression; set type int64; create annotation title := 'foo'; alter annotation title := 'foo'; drop annotation title; }; """
ALTER GLOBAL foo { set default := '10'; using (20); reset default; rename to bar; set required; set single; reset cardinality; reset optionality; reset expression; set type int64; create annotation title := 'foo'; alter annotation title := 'foo'; drop annotation title; };
test_edgeql_syntax_ddl_global_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_global_07(self): """ CREATE GLOBAL test::foo -> str; """
CREATE GLOBAL test::foo -> str;
test_edgeql_syntax_ddl_global_07
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_global_01(self): """ select global bar; """
select global bar;
test_edgeql_syntax_global_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_global_02(self): """ select (global bar + 1); """
select (global bar + 1);
test_edgeql_syntax_global_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_global_03(self): """ select (global bar); % OK % select global bar; """
select (global bar); % OK % select global bar;
test_edgeql_syntax_global_03
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_config_global_01(self): """ set global foo := 10; """
set global foo := 10;
test_edgeql_syntax_config_global_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_config_global_02(self): """ set global test::foo := 10; """
set global test::foo := 10;
test_edgeql_syntax_config_global_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_config_global_03(self): """ reset global foo; """
reset global foo;
test_edgeql_syntax_config_global_03
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_config_global_04(self): """ reset global test::foo; """
reset global test::foo;
test_edgeql_syntax_config_global_04
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_policy_01(self): """ create type Foo { create access policy test allow all using (true); }; """
create type Foo { create access policy test allow all using (true); };
test_edgeql_syntax_ddl_policy_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_policy_02(self): """ create type Foo { create access policy test allow select, update write using (true); }; """
create type Foo { create access policy test allow select, update write using (true); };
test_edgeql_syntax_ddl_policy_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_policy_03(self): """ alter type Foo { create access policy test when (true) deny all using (true) { create annotation title := 'foo'; }; }; """
alter type Foo { create access policy test when (true) deny all using (true) { create annotation title := 'foo'; }; };
test_edgeql_syntax_ddl_policy_03
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_policy_04(self): """ alter type Foo { alter access policy test { rename to bar; create annotation title := 'foo'; }; }; """
alter type Foo { alter access policy test { rename to bar; create annotation title := 'foo'; }; };
test_edgeql_syntax_ddl_policy_04
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_policy_05(self): """ alter type Foo { drop access policy test; }; """
alter type Foo { drop access policy test; };
test_edgeql_syntax_ddl_policy_05
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_policy_06(self): """ create type Foo { alter access policy test { when (false); allow all; using (true); }; }; """
create type Foo { alter access policy test { when (false); allow all; using (true); }; };
test_edgeql_syntax_ddl_policy_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_policy_07(self): """ create type Foo { alter access policy test { reset when; allow all; using (true); }; }; """
create type Foo { alter access policy test { reset when; allow all; using (true); }; };
test_edgeql_syntax_ddl_policy_07
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_trigger_01(self): """ create type Foo { create trigger foo after insert for each do (1); }; """
create type Foo { create trigger foo after insert for each do (1); };
test_edgeql_syntax_ddl_trigger_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_trigger_02(self): """ alter type Foo { create trigger foo after commit of update, delete, insert for all do (1); }; """
alter type Foo { create trigger foo after commit of update, delete, insert for all do (1); };
test_edgeql_syntax_ddl_trigger_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_trigger_03(self): """ alter type Foo { drop trigger foo; }; """
alter type Foo { drop trigger foo; };
test_edgeql_syntax_ddl_trigger_03
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_trigger_04(self): """ alter type Foo { alter trigger foo using (1); }; """
alter type Foo { alter trigger foo using (1); };
test_edgeql_syntax_ddl_trigger_04
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_rewrite_01(self): """ create type Foo { create property foo: i64 { create rewrite update, insert using (1); }; }; """
create type Foo { create property foo: i64 { create rewrite update, insert using (1); }; };
test_edgeql_syntax_ddl_rewrite_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_rewrite_02(self): """ alter type Foo { create property name_updated_at: i64 { create rewrite update using (( datetime_current() if __specified__.name else .name_updated_at )); }; }; """
alter type Foo { create property name_updated_at: i64 { create rewrite update using (( datetime_current() if __specified__.name else .name_updated_at )); }; };
test_edgeql_syntax_ddl_rewrite_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_rewrite_03(self): """ alter type Foo { alter property foo { drop rewrite update; alter rewrite insert using (3); }; }; """
alter type Foo { alter property foo { drop rewrite update; alter rewrite insert using (3); }; };
test_edgeql_syntax_ddl_rewrite_03
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_rewrite_04(self): """ alter type Foo { alter property foo { alter rewrite insert using (1); }; }; """
alter type Foo { alter property foo { alter rewrite insert using (1); }; };
test_edgeql_syntax_ddl_rewrite_04
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_empty_01(self): """ CREATE TYPE Foo { }; % OK % CREATE TYPE Foo; """
CREATE TYPE Foo { }; % OK % CREATE TYPE Foo;
test_edgeql_syntax_ddl_empty_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_empty_02(self): """ CREATE TYPE Foo { CREATE PROPERTY bar -> str { } }; % OK % CREATE TYPE Foo { CREATE PROPERTY bar: str; }; """
CREATE TYPE Foo { CREATE PROPERTY bar -> str { } }; % OK % CREATE TYPE Foo { CREATE PROPERTY bar: str; };
test_edgeql_syntax_ddl_empty_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_index_match_01(self): """ create index match for std::str using pg::brin; """
create index match for std::str using pg::brin;
test_edgeql_syntax_ddl_index_match_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_index_match_02(self): """ create index match for std::str using pg::brin { create annotation description := 'foo'; }; """
create index match for std::str using pg::brin { create annotation description := 'foo'; };
test_edgeql_syntax_ddl_index_match_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_index_match_03(self): """ drop index match for std::str using pg::brin; """
drop index match for std::str using pg::brin;
test_edgeql_syntax_ddl_index_match_03
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_sdl_empty_01(self): """ START MIGRATION to { type default::User { }; }; % OK % START MIGRATION to { type default::User; }; """
START MIGRATION to { type default::User { }; }; % OK % START MIGRATION to { type default::User; };
test_edgeql_syntax_sdl_empty_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_sdl_empty_02(self): """ START MIGRATION to { type default::User { property name -> str { }; }; }; % OK % START MIGRATION to { type default::User { property name: str; }; }; """
START MIGRATION to { type default::User { property name -> str { }; }; }; % OK % START MIGRATION to { type default::User { property name: str; }; };
test_edgeql_syntax_sdl_empty_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_semi_01(self): """ CREATE TYPE Foo { ;;; }; % OK % CREATE TYPE Foo; """
CREATE TYPE Foo { ;;; }; % OK % CREATE TYPE Foo;
test_edgeql_syntax_ddl_semi_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_semi_02(self): """ CREATE TYPE Foo { ;;; CREATE PROPERTY bar -> str ;;; CREATE PROPERTY baz -> int64; ;;; }; % OK % CREATE TYPE Foo { CREATE PROPERTY bar: str; CREATE PROPERTY baz: int64; }; """
CREATE TYPE Foo { ;;; CREATE PROPERTY bar -> str ;;; CREATE PROPERTY baz -> int64; ;;; }; % OK % CREATE TYPE Foo { CREATE PROPERTY bar: str; CREATE PROPERTY baz: int64; };
test_edgeql_syntax_ddl_semi_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_sdl_semi_01(self): """ START MIGRATION to { type default::User { ;;;; }; }; % OK % START MIGRATION to { type default::User; }; """
START MIGRATION to { type default::User { ;;;; }; }; % OK % START MIGRATION to { type default::User; };
test_edgeql_syntax_sdl_semi_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_sdl_semi_02(self): """ START MIGRATION to { type default::User { ;;; property bar -> int64; ;;; property name -> str; ;;; }; }; % OK % START MIGRATION to { type default::User { property bar: int64; property name: str; }; }; """
START MIGRATION to { type default::User { ;;; property bar -> int64; ;;; property name -> str; ;;; }; }; % OK % START MIGRATION to { type default::User { property bar: int64; property name: str; }; };
test_edgeql_syntax_sdl_semi_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_transaction_01(self): """ START TRANSACTION; ROLLBACK; COMMIT; DECLARE SAVEPOINT foo; ROLLBACK TO SAVEPOINT foo; RELEASE SAVEPOINT foo; """
START TRANSACTION; ROLLBACK; COMMIT; DECLARE SAVEPOINT foo; ROLLBACK TO SAVEPOINT foo; RELEASE SAVEPOINT foo;
test_edgeql_syntax_transaction_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_transaction_02(self): """ START TRANSACTION ISOLATION SERIALIZABLE, READ ONLY, DEFERRABLE; START TRANSACTION ISOLATION SERIALIZABLE, READ ONLY; START TRANSACTION READ ONLY, DEFERRABLE; START TRANSACTION READ ONLY, NOT DEFERRABLE; START TRANSACTION READ WRITE, NOT DEFERRABLE; START TRANSACTION READ WRITE; """
START TRANSACTION ISOLATION SERIALIZABLE, READ ONLY, DEFERRABLE; START TRANSACTION ISOLATION SERIALIZABLE, READ ONLY; START TRANSACTION READ ONLY, DEFERRABLE; START TRANSACTION READ ONLY, NOT DEFERRABLE; START TRANSACTION READ WRITE, NOT DEFERRABLE; START TRANSACTION READ WRITE;
test_edgeql_syntax_transaction_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_transaction_03(self): """ START TRANSACTION ISOLATION SERIALIZABLE, ISOLATION SERIALIZABLE; """
START TRANSACTION ISOLATION SERIALIZABLE, ISOLATION SERIALIZABLE;
test_edgeql_syntax_transaction_03
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_transaction_04(self): """ START TRANSACTION DEFERRABLE, NOT DEFERRABLE; """
START TRANSACTION DEFERRABLE, NOT DEFERRABLE;
test_edgeql_syntax_transaction_04
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_transaction_05(self): """ START TRANSACTION READ WRITE, DEFERRABLE, READ ONLY; """
START TRANSACTION READ WRITE, DEFERRABLE, READ ONLY;
test_edgeql_syntax_transaction_05
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_transaction_06(self): """ START TRANSACTION READ WRITE, NOT DEFERRABLE, ISOLATION SERIALIZABLE; % OK % START TRANSACTION ISOLATION SERIALIZABLE, READ WRITE, NOT DEFERRABLE; """
START TRANSACTION READ WRITE, NOT DEFERRABLE, ISOLATION SERIALIZABLE; % OK % START TRANSACTION ISOLATION SERIALIZABLE, READ WRITE, NOT DEFERRABLE;
test_edgeql_syntax_transaction_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_describe_01(self): """ DESCRIBE SCHEMA AS DDL; """
DESCRIBE SCHEMA AS DDL;
test_edgeql_syntax_describe_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_describe_02(self): """ DESCRIBE TYPE foo::Bar AS SDL; """
DESCRIBE TYPE foo::Bar AS SDL;
test_edgeql_syntax_describe_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_describe_03(self): """ DESCRIBE TYPE foo::Bar AS TEXT VERBOSE; """
DESCRIBE TYPE foo::Bar AS TEXT VERBOSE;
test_edgeql_syntax_describe_03
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_describe_04(self): """ DESCRIBE TYPE foo::Bar AS DDL VERBOSE; """
DESCRIBE TYPE foo::Bar AS DDL VERBOSE;
test_edgeql_syntax_describe_04
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_describe_05(self): """ DESCRIBE INSTANCE CONFIG; % OK % DESCRIBE INSTANCE CONFIG AS DDL; """
DESCRIBE INSTANCE CONFIG; % OK % DESCRIBE INSTANCE CONFIG AS DDL;
test_edgeql_syntax_describe_05
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_describe_06(self): """ DESCRIBE INSTANCE CONFIG AS DDL; """
DESCRIBE INSTANCE CONFIG AS DDL;
test_edgeql_syntax_describe_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_describe_07(self): """ DESCRIBE ROLES; % OK % DESCRIBE ROLES AS DDL; """
DESCRIBE ROLES; % OK % DESCRIBE ROLES AS DDL;
test_edgeql_syntax_describe_07
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_describe_08(self): """ DESCRIBE ROLES AS DDL; """
DESCRIBE ROLES AS DDL;
test_edgeql_syntax_describe_08
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_describe_09(self): """ DESCRIBE SYSTEM CONFIG; % OK % DESCRIBE INSTANCE CONFIG AS DDL; """
DESCRIBE SYSTEM CONFIG; % OK % DESCRIBE INSTANCE CONFIG AS DDL;
test_edgeql_syntax_describe_09
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_create_01(self): """ crEAte something; """
crEAte something;
test_edgeql_syntax_create_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_01(self): """ start migration to { module default { type Hello extending MetaHello { property platform_fee_percentage: int16 { constrant exclusive { errmessage := "asxasx"; } } required property blah := .bleh - .bloh - .blih; } } } """
start migration to { module default { type Hello extending MetaHello { property platform_fee_percentage: int16 { constrant exclusive { errmessage := "asxasx"; } } required property blah := .bleh - .bloh - .blih; } } }
test_edgeql_syntax_ddl_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_02(self): """ sys::get_version(); """
sys::get_version();
test_edgeql_syntax_ddl_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_normalization_01(self): ''' select count(foo 1); '''
select count(foo 1);
test_edgeql_normalization_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_normalization_02(self): ''' select count 1; '''
select count 1;
test_edgeql_normalization_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_eschema_syntax_empty_02(self): """# comment"""
# comment
test_eschema_syntax_empty_02
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_empty_04(self): """ # comment """
# comment
test_eschema_syntax_empty_04
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_tabs_01(self): """ \tabstract type test::Foo { \t\trequired property foo: str; \t}; \tabstract type test::Bar { \t\trequired property bar: str; \t}; """
\tabstract type test::Foo { \t\trequired property foo: str; \t}; \tabstract type test::Bar { \t\trequired property bar: str; \t};
test_eschema_syntax_tabs_01
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_tabs_02(self): """ \t abstract type test::Foo { \t required property foo: str; }; \t abstract type test::Bar { \t required property bar: str; }; """
\t abstract type test::Foo { \t required property foo: str; }; \t abstract type test::Bar { \t required property bar: str; };
test_eschema_syntax_tabs_02
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_semicolon_01(self): """ abstract type test::OwnedObject { required link owner: User }; % OK % abstract type test::OwnedObject { required link owner: User; }; """
abstract type test::OwnedObject { required link owner: User }; % OK % abstract type test::OwnedObject { required link owner: User; };
test_eschema_syntax_semicolon_01
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_semicolon_02(self): """ module test { abstract type OwnedObject { required property tag: str } } % OK % module test { abstract type OwnedObject { required property tag: str; }; }; """
module test { abstract type OwnedObject { required property tag: str } } % OK % module test { abstract type OwnedObject { required property tag: str; }; };
test_eschema_syntax_semicolon_02
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_semicolon_03(self): """ abstract type test::OwnedObject { required link owner: User; required property tag: str }; % OK % abstract type test::OwnedObject { required link owner: User; required property tag: str; }; """
abstract type test::OwnedObject { required link owner: User; required property tag: str }; % OK % abstract type test::OwnedObject { required link owner: User; required property tag: str; };
test_eschema_syntax_semicolon_03
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_01(self): """type test::User extending builtins::NamedObject;"""
type test::User extending builtins::NamedObject;
test_eschema_syntax_type_01
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_02(self): """ abstract type test::OwnedObject { required link owner: User; }; """
abstract type test::OwnedObject { required link owner: User; };
test_eschema_syntax_type_02
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_03(self): """ module test { abstract type Text { required property body: str { constraint max_len_value (10000); }; }; }; """
module test { abstract type Text { required property body: str { constraint max_len_value (10000); }; }; };
test_eschema_syntax_type_03
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_04(self): """ module test { type LogEntry extending OwnedObject, Text { required property spent_time: int64; }; }; """
module test { type LogEntry extending OwnedObject, Text { required property spent_time: int64; }; };
test_eschema_syntax_type_04
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_05(self): """ module test { type LogEntry extending OwnedObject, Text { link start_date := (SELECT datetime::datetime_current()); }; }; """
module test { type LogEntry extending OwnedObject, Text { link start_date := (SELECT datetime::datetime_current()); }; };
test_eschema_syntax_type_05
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_06(self): """ module test { type LogEntry extending OwnedObject, Text { property start_date: datetime { default := (SELECT datetime::datetime_current()); title := 'Start Date'; }; }; }; """
module test { type LogEntry extending OwnedObject, Text { property start_date: datetime { default := (SELECT datetime::datetime_current()); title := 'Start Date'; }; }; };
test_eschema_syntax_type_06
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_07(self): """ module test { type Issue extending `foo.bar`::NamedObject, OwnedObject, Text { required link number: issue_num_t { readonly := true; }; required link status: Status; link priority: Priority; multi link watchers: User { extending orderable; property foo: str { extending bar; }; }; multi link time_spent_log: LogEntry; link start_date := (SELECT datetime::datetime_current()); multi link related_to: Issue; property time_estimate: int64; property start_date: datetime { default := (SELECT datetime::datetime_current()); title := 'Start Date'; }; property due_date: datetime; property real_time_estimate { using ((.time_estimate * 2)); annotation title := 'Ha.'; }; link start_date2 { using (SELECT datetime::datetime_current()); annotation title := 'awk.'; }; }; }; """
module test { type Issue extending `foo.bar`::NamedObject, OwnedObject, Text { required link number: issue_num_t { readonly := true; }; required link status: Status; link priority: Priority; multi link watchers: User { extending orderable; property foo: str { extending bar; }; }; multi link time_spent_log: LogEntry; link start_date := (SELECT datetime::datetime_current()); multi link related_to: Issue; property time_estimate: int64; property start_date: datetime { default := (SELECT datetime::datetime_current()); title := 'Start Date'; }; property due_date: datetime; property real_time_estimate { using ((.time_estimate * 2)); annotation title := 'Ha.'; }; link start_date2 { using (SELECT datetime::datetime_current()); annotation title := 'awk.'; }; }; };
test_eschema_syntax_type_07
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_08(self): """ module test { type Foo { property time_estimate: int64 { property unit { default := 'minute'; }; }; }; }; """
module test { type Foo { property time_estimate: int64 { property unit { default := 'minute'; }; }; }; };
test_eschema_syntax_type_08
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_09(self): """ module test { type LogEntry extending OwnedObject, Text { required link attachment: Post | File | User; }; }; """
module test { type LogEntry extending OwnedObject, Text { required link attachment: Post | File | User; }; };
test_eschema_syntax_type_09
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_10(self): """ module test { type `Log-Entry` extending `OwnedObject`, `Text` { required link attachment: `Post` | `File` | `User`; }; }; % OK % module test { type `Log-Entry` extending OwnedObject, Text { required link attachment: Post | File | User; }; }; """
module test { type `Log-Entry` extending `OwnedObject`, `Text` { required link attachment: `Post` | `File` | `User`; }; }; % OK % module test { type `Log-Entry` extending OwnedObject, Text { required link attachment: Post | File | User; }; };
test_eschema_syntax_type_10
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_11(self): """ module test { type Commit { required property name: std::str; }; }; """
module test { type Commit { required property name: std::str; }; };
test_eschema_syntax_type_11
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_12(self): """ module test { type __Foo__ { required property name: std::str; }; }; """
module test { type __Foo__ { required property name: std::str; }; };
test_eschema_syntax_type_12
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_13(self): """ module test { type `__Foo__` { required property name: std::str; }; }; """
module test { type `__Foo__` { required property name: std::str; }; };
test_eschema_syntax_type_13
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_14(self): """ module test { type __Foo { required property __name__: std::str; }; }; """
module test { type __Foo { required property __name__: std::str; }; };
test_eschema_syntax_type_14
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_15(self): """ module test { type `__Foo` { required property `__name__`: std::str; }; }; """
module test { type `__Foo` { required property `__name__`: std::str; }; };
test_eschema_syntax_type_15
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_16(self): """ module test { type Пример { required property номер: int16; }; }; """
module test { type Пример { required property номер: int16; }; };
test_eschema_syntax_type_16
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_17(self): """ module test { type Foo { link bar0: Bar { on target delete restrict; }; link bar1: Bar { on target delete delete source; }; link bar2: Bar { on target delete allow; }; link bar3: Bar { on target delete deferred restrict; }; }; }; """
module test { type Foo { link bar0: Bar { on target delete restrict; }; link bar1: Bar { on target delete delete source; }; link bar2: Bar { on target delete allow; }; link bar3: Bar { on target delete deferred restrict; }; }; };
test_eschema_syntax_type_17
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_18(self): """ module test { type Foo { link bar0: Bar { on target delete restrict; on target delete delete source; }; }; }; """
module test { type Foo { link bar0: Bar { on target delete restrict; on target delete delete source; }; }; };
test_eschema_syntax_type_18
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_19(self): """ module test { type Foo { property foo: str { default := some_func( 1, 2, 3); }; }; }; """
module test { type Foo { property foo: str { default := some_func( 1, 2, 3); }; }; };
test_eschema_syntax_type_19
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_23(self): """ module test { type Foo { single link foo: Foo; multi link bar: Bar; required single link baz: Baz; required multi link spam: Spam; overloaded required single link ham: Ham; overloaded required multi link eggs: Egg; overloaded link knight; overloaded link clinic { property argument: int64; }; overloaded property castle; overloaded property tower { constraint exclusive; }; constraint exclusive on (.asdf) except (.baz); index on (.asdf) except (.baz); deferred index on (.asdf) except (.baz); deferred index bar on (.foo); deferred index bar on (.foo) except (.bar); }; }; """
module test { type Foo { single link foo: Foo; multi link bar: Bar; required single link baz: Baz; required multi link spam: Spam; overloaded required single link ham: Ham; overloaded required multi link eggs: Egg; overloaded link knight; overloaded link clinic { property argument: int64; }; overloaded property castle; overloaded property tower { constraint exclusive; }; constraint exclusive on (.asdf) except (.baz); index on (.asdf) except (.baz); deferred index on (.asdf) except (.baz); deferred index bar on (.foo); deferred index bar on (.foo) except (.bar); }; };
test_eschema_syntax_type_23
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_23b(self): """ module test { type Foo { property: Foo; single foo: Foo; multi bar: Bar { prop: int64; }; required property multi: Bar; required single baz: Baz; required multi spam: Spam; overloaded required single ham: Ham; overloaded required multi eggs: Egg; overloaded ham2: Ham; constraint exclusive on (.asdf) except (.baz); index on (.asdf) except (.baz); }; }; """
module test { type Foo { property: Foo; single foo: Foo; multi bar: Bar { prop: int64; }; required property multi: Bar; required single baz: Baz; required multi spam: Spam; overloaded required single ham: Ham; overloaded required multi eggs: Egg; overloaded ham2: Ham; constraint exclusive on (.asdf) except (.baz); index on (.asdf) except (.baz); }; };
test_eschema_syntax_type_23b
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_24(self): """ module test { type Foo { single property foo: str; multi property bar: str; required single property baz: str; required multi property spam: str; overloaded required single property ham: str; overloaded required multi property eggs: str; }; }; """
module test { type Foo { single property foo: str; multi property bar: str; required single property baz: str; required multi property spam: str; overloaded required single property ham: str; overloaded required multi property eggs: str; }; };
test_eschema_syntax_type_24
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_25(self): """ module test { type Foo { single property foo: str } type Bar { multi property bar: str } type Baz { required single property baz: str } type Spam { required multi property spam: str } type Ham { overloaded required single property ham: str } type Eggs { overloaded required multi property eggs: str } } % OK % module test { type Foo { single property foo: str; }; type Bar { multi property bar: str; }; type Baz { required single property baz: str; }; type Spam { required multi property spam: str; }; type Ham { overloaded required single property ham: str; }; type Eggs { overloaded required multi property eggs: str; }; }; """
module test { type Foo { single property foo: str } type Bar { multi property bar: str } type Baz { required single property baz: str } type Spam { required multi property spam: str } type Ham { overloaded required single property ham: str } type Eggs { overloaded required multi property eggs: str } } % OK % module test { type Foo { single property foo: str; }; type Bar { multi property bar: str; }; type Baz { required single property baz: str; }; type Spam { required multi property spam: str; }; type Ham { overloaded required single property ham: str; }; type Eggs { overloaded required multi property eggs: str; }; };
test_eschema_syntax_type_25
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_26(self): """ module test { type Foo { single property foo: str { constraint max_len_value (10000) } multi property bar: str { constraint max_len_value (10000) } } } % OK % module test { type Foo { single property foo: str { constraint max_len_value (10000); }; multi property bar: str { constraint max_len_value (10000); }; }; }; """
module test { type Foo { single property foo: str { constraint max_len_value (10000) } multi property bar: str { constraint max_len_value (10000) } } } % OK % module test { type Foo { single property foo: str { constraint max_len_value (10000); }; multi property bar: str { constraint max_len_value (10000); }; }; };
test_eschema_syntax_type_26
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_27(self): """ type foo::Bar { property name: str; }; """
type foo::Bar { property name: str; };
test_eschema_syntax_type_27
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_28(self): """ module foo { type Bar { property name: str; }; }; """
module foo { type Bar { property name: str; }; };
test_eschema_syntax_type_28
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_29(self): """ module foo { type foo::Bar { property name: str; }; }; """
module foo { type foo::Bar { property name: str; }; };
test_eschema_syntax_type_29
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_30(self): """ module foo { type Bar { property name: str; }; }; type foo::Bar2 { property name: str; }; module foo { type Bar3 { property name: str; }; }; """
module foo { type Bar { property name: str; }; }; type foo::Bar2 { property name: str; }; module foo { type Bar3 { property name: str; }; };
test_eschema_syntax_type_30
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_31(self): """ module foo { type Bar { property name: str; }; }; type bar::Bar { property name: str; }; module baz { type Bar { property name: str; }; }; """
module foo { type Bar { property name: str; }; }; type bar::Bar { property name: str; }; module baz { type Bar { property name: str; }; };
test_eschema_syntax_type_31
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_32(self): """ type test::Foo { property lurr { using (20); }; } % OK % type test::Foo { property lurr := (20); }; """
type test::Foo { property lurr { using (20); }; } % OK % type test::Foo { property lurr := (20); };
test_eschema_syntax_type_32
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_33(self): """ module default { type Foo0 { property union: str; link except: Object; }; type Foo1 { required property union: str; required link except: Object; }; type Foo2 { optional property union: str; optional link except: Object; }; }; """
module default { type Foo0 { property union: str; link except: Object; }; type Foo1 { required property union: str; required link except: Object; }; type Foo2 { optional property union: str; optional link except: Object; }; };
test_eschema_syntax_type_33
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_34(self): """ module default { type Foo1 { multi property union: str; multi link except: Object; }; type Foo2 { single property union: str; single link except: Object; }; }; """
module default { type Foo1 { multi property union: str; multi link except: Object; }; type Foo2 { single property union: str; single link except: Object; }; };
test_eschema_syntax_type_34
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_35(self): """ module default { type Foo { property union: str { extending except; }; }; }; """
module default { type Foo { property union: str { extending except; }; }; };
test_eschema_syntax_type_35
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_type_36(self): """ module default { type Foo { link union: Object { extending except; property intersect: str; }; }; }; """
module default { type Foo { link union: Object { extending except; property intersect: str; }; }; };
test_eschema_syntax_type_36
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0
def test_eschema_syntax_link_target_type_01(self): """ module test { type User { required link todo: array<str>; }; }; """
module test { type User { required link todo: array<str>; }; };
test_eschema_syntax_link_target_type_01
python
geldata/gel
tests/test_schema_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py
Apache-2.0