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_shape_29(self): """ SELECT Issue{ name, related_to *$var, }; """
SELECT Issue{ name, related_to *$var, };
test_edgeql_syntax_shape_29
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_shape_30(self): """ SELECT Named { [IS Issue].references[IS File]: { name } }; """
SELECT Named { [IS Issue].references[IS File]: { name } };
test_edgeql_syntax_shape_30
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_shape_32(self): """ SELECT User{ name, owned := User.<owner[IS LogEntry] { body }, }; """
SELECT User{ name, owned := User.<owner[IS LogEntry] { body }, };
test_edgeql_syntax_shape_32
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_shape_33(self): """ SELECT User { name, groups: { name, } FILTER (.name = 'admin') }; """
SELECT User { name, groups: { name, } FILTER (.name = 'admin') };
test_edgeql_syntax_shape_33
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_shape_34(self): """ SELECT User{ name, owned := User.<owner[IS LogEntry] { body }, } FILTER (.<owner.body = 'foo'); """
SELECT User{ name, owned := User.<owner[IS LogEntry] { body }, } FILTER (.<owner.body = 'foo');
test_edgeql_syntax_shape_34
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_shape_35(self): """ SELECT User { name, groups: { name, } FILTER (@special = True) }; """
SELECT User { name, groups: { name, } FILTER (@special = True) };
test_edgeql_syntax_shape_35
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_shape_36(self): """ SELECT User { name, groups: { name, @`rank`, @`~crazy`, } }; % OK % SELECT User { name, groups: { name, @rank, @`~crazy`, } }; """
SELECT User { name, groups: { name, @`rank`, @`~crazy`, } }; % OK % SELECT User { name, groups: { name, @rank, @`~crazy`, } };
test_edgeql_syntax_shape_36
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_shape_37(self): """ SELECT Foo { foo FILTER (foo > 3), bar ORDER BY bar DESC, baz OFFSET 1 LIMIT 3, }; """
SELECT Foo { foo FILTER (foo > 3), bar ORDER BY bar DESC, baz OFFSET 1 LIMIT 3, };
test_edgeql_syntax_shape_37
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_shape_38(self): """ SELECT Foo { spam: { @foo FILTER (foo > 3), @bar ORDER BY bar DESC, @baz OFFSET 1 LIMIT 3, }, }; """
SELECT Foo { spam: { @foo FILTER (foo > 3), @bar ORDER BY bar DESC, @baz OFFSET 1 LIMIT 3, }, };
test_edgeql_syntax_shape_38
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_shape_39(self): """ SELECT Foo { foo := Foo { name } }; """
SELECT Foo { foo := Foo { name } };
test_edgeql_syntax_shape_39
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_shape_40(self): """ SELECT Foo { multi foo := Foo { name } }; """
SELECT Foo { multi foo := Foo { name } };
test_edgeql_syntax_shape_40
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_shape_41(self): """ SELECT Foo { single foo := Foo { name } }; """
SELECT Foo { single foo := Foo { name } };
test_edgeql_syntax_shape_41
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_shape_42(self): """ SELECT Foo { required multi foo := Foo { name } }; """
SELECT Foo { required multi foo := Foo { name } };
test_edgeql_syntax_shape_42
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_shape_43(self): """ SELECT Foo { required single foo := Foo { name } }; """
SELECT Foo { required single foo := Foo { name } };
test_edgeql_syntax_shape_43
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_shape_43a(self): """ SELECT Foo { optional multi foo := Foo { name } }; """
SELECT Foo { optional multi foo := Foo { name } };
test_edgeql_syntax_shape_43a
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_shape_43b(self): """ SELECT Foo { optional single foo := Foo { name } }; """
SELECT Foo { optional single foo := Foo { name } };
test_edgeql_syntax_shape_43b
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_shape_44(self): """ SELECT Foo { required blah foo := Foo { name } }; """
SELECT Foo { required blah foo := Foo { name } };
test_edgeql_syntax_shape_44
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_shape_45(self): """ SELECT Foo { foo {} }; """
SELECT Foo { foo {} };
test_edgeql_syntax_shape_45
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_shape_46(self): """ SELECT Foo { foo { bar } }; """
SELECT Foo { foo { bar } };
test_edgeql_syntax_shape_46
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_shape_47(self): """ UPDATE Foo SET { foo += Bar }; """
UPDATE Foo SET { foo += Bar };
test_edgeql_syntax_shape_47
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_shape_48(self): """ UPDATE Foo SET { foo -= Bar }; """
UPDATE Foo SET { foo -= Bar };
test_edgeql_syntax_shape_48
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_shape_49(self): """ SELECT Foo { id name }; """
SELECT Foo { id name };
test_edgeql_syntax_shape_49
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_shape_50(self): """ SELECT Foo { bar: { id } name }; """
SELECT Foo { bar: { id } name };
test_edgeql_syntax_shape_50
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_shape_51(self): """ SELECT Foo { bar := .id name }; """
SELECT Foo { bar := .id name };
test_edgeql_syntax_shape_51
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_shape_52(self): """ SELECT Foo { bar: { @linkprop name } }; """
SELECT Foo { bar: { @linkprop name } };
test_edgeql_syntax_shape_52
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_shape_53(self): """ INSERT Foo { bar: Bar { val := 1 } }; """
INSERT Foo { bar: Bar { val := 1 } };
test_edgeql_syntax_shape_53
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_shape_54(self): """ SELECT (1 Foo { foo bar }); """
SELECT (1 Foo { foo bar });
test_edgeql_syntax_shape_54
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_shape_55(self): """ SELECT (Foo { foo bar } 2); """
SELECT (Foo { foo bar } 2);
test_edgeql_syntax_shape_55
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_shape_56(self): """ SELECT [1 Foo { foo bar := .foo + 1 }.bar]; """
SELECT [1 Foo { foo bar := .foo + 1 }.bar];
test_edgeql_syntax_shape_56
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_shape_57(self): """ SELECT [Foo { foo bar := .foo + 1 }.bar 2]; """
SELECT [Foo { foo bar := .foo + 1 }.bar 2];
test_edgeql_syntax_shape_57
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_shape_58(self): """ SELECT somefunc(1 Foo { foo bar }); """
SELECT somefunc(1 Foo { foo bar });
test_edgeql_syntax_shape_58
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_shape_59(self): """ SELECT somefunc(Foo { foo bar } 2); """
SELECT somefunc(Foo { foo bar } 2);
test_edgeql_syntax_shape_59
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_shape_60(self): """ SELECT (Foo{id} 2); """
SELECT (Foo{id} 2);
test_edgeql_syntax_shape_60
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_shape_61(self): """ SELECT (Foo{id} bar); """
SELECT (Foo{id} bar);
test_edgeql_syntax_shape_61
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_shape_62(self): """ SELECT [Foo{id} 2]; """
SELECT [Foo{id} 2];
test_edgeql_syntax_shape_62
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_shape_63(self): """ SELECT [Foo{id} bar]; """
SELECT [Foo{id} bar];
test_edgeql_syntax_shape_63
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_shape_64(self): """ SELECT sys::Branch{}; % OK % SELECT sys::Branch; """
SELECT sys::Branch{}; % OK % SELECT sys::Branch;
test_edgeql_syntax_shape_64
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_shape_65(self): """ select Foo{union}; select Foo{except}; select Foo{intersect}; """
select Foo{union}; select Foo{except}; select Foo{intersect};
test_edgeql_syntax_shape_65
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_shape_66(self): """ select Foo { bar: { @union, @except, @intersect, } }; """
select Foo { bar: { @union, @except, @intersect, } };
test_edgeql_syntax_shape_66
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_shape_67(self): """ select Foo { [is Bar].union, [is Bar].except, [is Bar].intersect, }; """
select Foo { [is Bar].union, [is Bar].except, [is Bar].intersect, };
test_edgeql_syntax_shape_67
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_shape_68(self): """ select Foo { union := 1, except := 1, intersect := 1 }; """
select Foo { union := 1, except := 1, intersect := 1 };
test_edgeql_syntax_shape_68
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_shape_69(self): """ select Foo { required union := 1, required except := 1, required intersect := 1 }; """
select Foo { required union := 1, required except := 1, required intersect := 1 };
test_edgeql_syntax_shape_69
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_shape_70(self): """ select Foo { optional union := 1, optional except := 1, optional intersect := 1 }; """
select Foo { optional union := 1, optional except := 1, optional intersect := 1 };
test_edgeql_syntax_shape_70
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_shape_71(self): """ select Foo { single union := 1, single except := 1, single intersect := 1 }; """
select Foo { single union := 1, single except := 1, single intersect := 1 };
test_edgeql_syntax_shape_71
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_shape_72(self): """ select Foo { multi union := 1, multi except := 1, multi intersect := 1 }; """
select Foo { multi union := 1, multi except := 1, multi intersect := 1 };
test_edgeql_syntax_shape_72
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_shape_splat_01(self): """ select Foo { * }; """
select Foo { * };
test_edgeql_syntax_shape_splat_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_shape_splat_02(self): """ select Foo { ** }; """
select Foo { ** };
test_edgeql_syntax_shape_splat_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_shape_splat_03(self): """ select Foo { bar, **, baz, *, link: { *, foo, **, } }; """
select Foo { bar, **, baz, *, link: { *, foo, **, } };
test_edgeql_syntax_shape_splat_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_shape_splat_04(self): """ select Foo { Type.*, Type.**, (Type | OtherType).*, (Type & OtherType).*, }; """
select Foo { Type.*, Type.**, (Type | OtherType).*, (Type & OtherType).*, };
test_edgeql_syntax_shape_splat_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_shape_splat_05(self): """ select Foo { [is Type].*, [is Type].**, [is (Type | Type2)].*, }; """
select Foo { [is Type].*, [is Type].**, [is (Type | Type2)].*, };
test_edgeql_syntax_shape_splat_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_shape_splat_06(self): """ select Foo { default::Foo[is Type].*, default::Foo[is Type].**, foo::Bar.*, foo::Bar.**, Foo[is Type].*, (Foo | Bar)[is Type].**, sub: { (Foo & Bar)[is (Type | Type2)].*, }, }; """
select Foo { default::Foo[is Type].*, default::Foo[is Type].**, foo::Bar.*, foo::Bar.**, Foo[is Type].*, (Foo | Bar)[is Type].**, sub: { (Foo & Bar)[is (Type | Type2)].*, }, };
test_edgeql_syntax_shape_splat_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_struct_01(self): """ SELECT ( foo := 1, bar := 2 ); """
SELECT ( foo := 1, bar := 2 );
test_edgeql_syntax_struct_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_struct_02(self): """ SELECT ( foo := ( foobaz := 1, foobiz := 2, ), bar := 3 ); """
SELECT ( foo := ( foobaz := 1, foobiz := 2, ), bar := 3 );
test_edgeql_syntax_struct_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_struct_03(self): """ SELECT ( foo: 1, bar := 3 ); """
SELECT ( foo: 1, bar := 3 );
test_edgeql_syntax_struct_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_struct_04(self): """ SELECT ( foo: ( bar: 42 ) ); """
SELECT ( foo: ( bar: 42 ) );
test_edgeql_syntax_struct_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_struct_05(self): """ SELECT ( foo: ( 'bar': 42 ) ); """
SELECT ( foo: ( 'bar': 42 ) );
test_edgeql_syntax_struct_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_struct_06(self): """ SELECT ( foo := ['bar'] ); """
SELECT ( foo := ['bar'] );
test_edgeql_syntax_struct_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_struct_07(self): """ WITH # unreserved keywords abort := 'abort', abstract := 'abstract', action := 'action', declare := 'declare', empty := 'empty', order := 'order', populate := 'populate', release := 'release', reset := 'reset' SELECT 1; """
WITH # unreserved keywords abort := 'abort', abstract := 'abstract', action := 'action', declare := 'declare', empty := 'empty', order := 'order', populate := 'populate', release := 'release', reset := 'reset' SELECT 1;
test_edgeql_syntax_struct_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_struct_08(self): """ SELECT ( # reserved keywords if := 1, select := 2 ); """
SELECT ( # reserved keywords if := 1, select := 2 );
test_edgeql_syntax_struct_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_struct_09(self): """ SELECT ( # reserved keywords seLEct := 2 ); """
SELECT ( # reserved keywords seLEct := 2 );
test_edgeql_syntax_struct_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_struct_10(self): """ SELECT (1, a := 2); """
SELECT (1, a := 2);
test_edgeql_syntax_struct_10
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_struct_11(self): """ SELECT (a := 1, 2); """
SELECT (a := 1, 2);
test_edgeql_syntax_struct_11
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_struct_12(self): """ SELECT (a := 1, foo); """
SELECT (a := 1, foo);
test_edgeql_syntax_struct_12
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_struct_13(self): """ SELECT (a := 1, foo.bar); """
SELECT (a := 1, foo.bar);
test_edgeql_syntax_struct_13
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_path_01(self): """ SELECT Foo.bar; SELECT Foo.<bar; SELECT Foo.bar@spam; SELECT Foo.<bar@spam; SELECT Foo.bar[IS Baz]; SELECT Foo.<bar[IS Baz]; SELECT Foo.<var[IS Baz][IS Spam].bar[IS Foo]; % OK % SELECT Foo.bar; SELECT Foo.<bar; SELECT Foo.bar@spam; SELECT Foo.<bar@spam; SELECT Foo.bar[IS Baz]; SELECT Foo.<bar[IS Baz]; SELECT Foo.<var[IS Baz][IS Spam].bar[IS Foo]; """
SELECT Foo.bar; SELECT Foo.<bar; SELECT Foo.bar@spam; SELECT Foo.<bar@spam; SELECT Foo.bar[IS Baz]; SELECT Foo.<bar[IS Baz]; SELECT Foo.<var[IS Baz][IS Spam].bar[IS Foo]; % OK % SELECT Foo.bar; SELECT Foo.<bar; SELECT Foo.bar@spam; SELECT Foo.<bar@spam; SELECT Foo.bar[IS Baz]; SELECT Foo.<bar[IS Baz]; SELECT Foo.<var[IS Baz][IS Spam].bar[IS Foo];
test_edgeql_syntax_path_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_path_02(self): """ SELECT Foo.event; SELECT Foo.<event; SELECT Foo.event@action; SELECT Foo.<event@action; SELECT Foo.event[IS Action]; SELECT Foo.<event[IS Action]; % OK % SELECT Foo.event; SELECT Foo.<event; SELECT Foo.event@action; SELECT Foo.<event@action; SELECT Foo.event[IS Action]; SELECT Foo.<event[IS Action]; """
SELECT Foo.event; SELECT Foo.<event; SELECT Foo.event@action; SELECT Foo.<event@action; SELECT Foo.event[IS Action]; SELECT Foo.<event[IS Action]; % OK % SELECT Foo.event; SELECT Foo.<event; SELECT Foo.event@action; SELECT Foo.<event@action; SELECT Foo.event[IS Action]; SELECT Foo.<event[IS Action];
test_edgeql_syntax_path_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_path_03(self): """ SELECT Foo.lib::bar; """
SELECT Foo.lib::bar;
test_edgeql_syntax_path_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_path_04(self): """ SELECT Foo[IS Bar]; """
SELECT Foo[IS Bar];
test_edgeql_syntax_path_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_path_05(self): """ SELECT Foo.bar@spam[IS Bar]; """
SELECT Foo.bar@spam[IS Bar];
test_edgeql_syntax_path_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_path_06(self): """ SELECT Foo.bar[IS To]; # unreserved keyword as type name """
SELECT Foo.bar[IS To]; # unreserved keyword as type name
test_edgeql_syntax_path_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_path_07(self): """ SELECT Foo.bar[IS To To]; """
SELECT Foo.bar[IS To To];
test_edgeql_syntax_path_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_path_08(self): """ SELECT Foo.bar[IS Case]; """
SELECT Foo.bar[IS Case];
test_edgeql_syntax_path_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_path_09(self): """ SELECT Foo.bar[2][IS Baz]; % OK % SELECT ((Foo.bar)[2])[IS Baz]; """
SELECT Foo.bar[2][IS Baz]; % OK % SELECT ((Foo.bar)[2])[IS Baz];
test_edgeql_syntax_path_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_path_10(self): """ SELECT (Foo.bar)[2:4][IS Baz]; % OK % SELECT ((Foo.bar)[2:4])[IS Baz]; """
SELECT (Foo.bar)[2:4][IS Baz]; % OK % SELECT ((Foo.bar)[2:4])[IS Baz];
test_edgeql_syntax_path_10
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_path_11(self): """ SELECT (Foo.bar)[2:][IS Baz]; % OK % SELECT ((Foo.bar)[2:])[IS Baz]; """
SELECT (Foo.bar)[2:][IS Baz]; % OK % SELECT ((Foo.bar)[2:])[IS Baz];
test_edgeql_syntax_path_11
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_path_12(self): """ SELECT (Foo.bar)[:2][IS Baz]; % OK % SELECT ((Foo.bar)[:2])[IS Baz]; """
SELECT (Foo.bar)[:2][IS Baz]; % OK % SELECT ((Foo.bar)[:2])[IS Baz];
test_edgeql_syntax_path_12
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_path_13(self): """ SELECT (Foo.bar)[IS Baz]; SELECT Foo.bar[IS Baz]; SELECT Foo.<bar[IS Baz]; % OK % SELECT Foo.bar[IS Baz]; SELECT Foo.bar[IS Baz]; SELECT Foo.<bar[IS Baz]; """
SELECT (Foo.bar)[IS Baz]; SELECT Foo.bar[IS Baz]; SELECT Foo.<bar[IS Baz]; % OK % SELECT Foo.bar[IS Baz]; SELECT Foo.bar[IS Baz]; SELECT Foo.<bar[IS Baz];
test_edgeql_syntax_path_13
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_path_14(self): """ SELECT User.__type__.name LIMIT 1; """
SELECT User.__type__.name LIMIT 1;
test_edgeql_syntax_path_14
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_path_15(self): """ SELECT (42).foo; % OK % SELECT (42).foo; """
SELECT (42).foo; % OK % SELECT (42).foo;
test_edgeql_syntax_path_15
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_path_16(self): # illegal semantically, but syntactically valid """ SELECT .foo; SELECT .<foo; """
SELECT .foo; SELECT .<foo;
test_edgeql_syntax_path_16
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_path_17(self): """ SELECT ..foo; """
SELECT ..foo;
test_edgeql_syntax_path_17
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_path_18(self): """ SELECT Foo.__source__; """
SELECT Foo.__source__;
test_edgeql_syntax_path_18
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_path_19(self): """ SELECT Foo.__subject__; """
SELECT Foo.__subject__;
test_edgeql_syntax_path_19
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_path_20(self): # illegal semantically, but syntactically valid """ SELECT __subject__; SELECT __source__; """
SELECT __subject__; SELECT __source__;
test_edgeql_syntax_path_20
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_path_21(self): # legal when `TUP` is a tuple """ SELECT TUP.0; SELECT TUP.0.name; SELECT Foo.TUP.0.name; SELECT TUP.0.1; SELECT TUP.0.1.name; SELECT Foo.TUP.0.1.name; """
SELECT TUP.0; SELECT TUP.0.name; SELECT Foo.TUP.0.name; SELECT TUP.0.1; SELECT TUP.0.1.name; SELECT Foo.TUP.0.1.name;
test_edgeql_syntax_path_21
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_path_22(self): """ SELECT TUP.0.2e2; """
SELECT TUP.0.2e2;
test_edgeql_syntax_path_22
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_path_23(self): """ SELECT __type__; """
SELECT __type__;
test_edgeql_syntax_path_23
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_path_24(self): """ SELECT Foo.bar@__type__; """
SELECT Foo.bar@__type__;
test_edgeql_syntax_path_24
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_path_25(self): # illegal semantically, but syntactically valid """ SELECT Foo.bar[IS array<int>]; SELECT Foo.bar[IS int64]; SELECT Foo.bar[IS tuple<array<int>, str>]; """
SELECT Foo.bar[IS array<int>]; SELECT Foo.bar[IS int64]; SELECT Foo.bar[IS tuple<array<int>, str>];
test_edgeql_syntax_path_25
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_path_26(self): # legal when `TUP` is a tuple """ SELECT TUP.0; SELECT TUP.0.name; SELECT TUP.0.1.name; SELECT TUP.0.1.n; SELECT Foo.TUP.0.name; """
SELECT TUP.0; SELECT TUP.0.name; SELECT TUP.0.1.name; SELECT TUP.0.1.n; SELECT Foo.TUP.0.name;
test_edgeql_syntax_path_26
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_path_27(self): """ SELECT TUP.0.1n.2; """
SELECT TUP.0.1n.2;
test_edgeql_syntax_path_27
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_path_28(self): """ SELECT TUP.1.1; """
SELECT TUP.1.1;
test_edgeql_syntax_path_28
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_path_29(self): # legal when `$0`, `$1`, `$a` and `$abc` are tuples """ SELECT $0.0; SELECT $0.0.name; SELECT $0.0.1.name; SELECT $0.0.1.n; SELECT $abc.0; SELECT $abc.0.name; SELECT $abc.0.1.name; SELECT $abc.0.1.n; """
SELECT $0.0; SELECT $0.0.name; SELECT $0.0.1.name; SELECT $0.0.1.n; SELECT $abc.0; SELECT $abc.0.name; SELECT $abc.0.1.name; SELECT $abc.0.1.n;
test_edgeql_syntax_path_29
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_path_30(self): # legal when `$0`, `$1`, `$a` and `$abc` are tuples """ SELECT $1.1.1; SELECT $a.1.1; """
SELECT $1.1.1; SELECT $a.1.1;
test_edgeql_syntax_path_30
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_path_31(self): """ SELECT $ a; """
SELECT $ a;
test_edgeql_syntax_path_31
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_path_32(self): """ select Foo.union.except.intersect; select Foo.<union[is Foo].<except[is Foo].<intersect[is Foo]; """
select Foo.union.except.intersect; select Foo.<union[is Foo].<except[is Foo].<intersect[is Foo];
test_edgeql_syntax_path_32
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_path_33(self): """ select Foo.bar@union; select Foo.bar@except; select Foo.bar@intersect; """
select Foo.bar@union; select Foo.bar@except; select Foo.bar@intersect;
test_edgeql_syntax_path_33
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_type_interpretation_01(self): """ SELECT Foo[IS Bar].spam; SELECT Foo[IS Bar].<ham; """
SELECT Foo[IS Bar].spam; SELECT Foo[IS Bar].<ham;
test_edgeql_syntax_type_interpretation_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_type_interpretation_02(self): """ SELECT (Foo + Bar)[IS Spam].ham; % OK % SELECT ((Foo + Bar))[IS Spam].ham; """
SELECT (Foo + Bar)[IS Spam].ham; % OK % SELECT ((Foo + Bar))[IS Spam].ham;
test_edgeql_syntax_type_interpretation_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_map_03(self): """ SELECT [ 'foo':= { bar := 42 } ]; """
SELECT [ 'foo':= { bar := 42 } ];
test_edgeql_syntax_map_03
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0