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_constants_02(self): """ SELECT 'a1'; SELECT "a1";;;;;;;;;;;; SELECT r'a1'; SELECT r"a1"; SELECT $$a1$$; SELECT $qwe$a1$qwe$; % OK % SELECT 'a1'; SELECT 'a1'; SELECT 'a1'; SELECT 'a1'; SELECT 'a1'; SELECT 'a1'; """
SELECT 'a1'; SELECT "a1";;;;;;;;;;;; SELECT r'a1'; SELECT r"a1"; SELECT $$a1$$; SELECT $qwe$a1$qwe$; % OK % SELECT 'a1'; SELECT 'a1'; SELECT 'a1'; SELECT 'a1'; SELECT 'a1'; SELECT 'a1';
test_edgeql_syntax_constants_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_constants_03(self): """ SELECT 3.5432; SELECT +3.5432; SELECT -3.5432; """
SELECT 3.5432; SELECT +3.5432; SELECT -3.5432;
test_edgeql_syntax_constants_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_constants_04(self): """ SELECT 354.32; SELECT 35400000000000.32; SELECT 35400000000000000000.32; SELECT 3.5432e20; SELECT 3.5432e+20; SELECT 3.5432e-20; SELECT 3.543_2e-20; SELECT 354.32e-20; SELECT 2_354.32e-20; SELECT 0e-999; % OK % SELECT 354.32; SELECT 35400000000000.32; SELECT 35400000000000000000.32; SELECT 3.5432e20; SELECT 3.5432e+20; SELECT 3.5432e-20; SELECT 3.543_2e-20; SELECT 354.32e-20; SELECT 2_354.32e-20; SELECT 0e-999; """
SELECT 354.32; SELECT 35400000000000.32; SELECT 35400000000000000000.32; SELECT 3.5432e20; SELECT 3.5432e+20; SELECT 3.5432e-20; SELECT 3.543_2e-20; SELECT 354.32e-20; SELECT 2_354.32e-20; SELECT 0e-999; % OK % SELECT 354.32; SELECT 35400000000000.32; SELECT 35400000000000000000.32; SELECT 3.5432e20; SELECT 3.5432e+20; SELECT 3.5432e-20; SELECT 3.543_2e-20; SELECT 354.32e-20; SELECT 2_354.32e-20; SELECT 0e-999;
test_edgeql_syntax_constants_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_constants_05(self): """ SELECT TRUE; SELECT FALSE; """
SELECT TRUE; SELECT FALSE;
test_edgeql_syntax_constants_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_constants_06(self): """ SELECT $1; SELECT $123; SELECT $somevar; SELECT $select; SELECT (($SELECT + $TRUE) + $WITH); """
SELECT $1; SELECT $123; SELECT $somevar; SELECT $select; SELECT (($SELECT + $TRUE) + $WITH);
test_edgeql_syntax_constants_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_constants_07(self): """ SELECT 02; """
SELECT 02;
test_edgeql_syntax_constants_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_constants_08(self): """ SELECT 1.; """
SELECT 1.;
test_edgeql_syntax_constants_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_constants_09(self): # NOTE: Although it looks like a float, the expression `.1` in # this test is not a float, instead it is a partial path (like # `.name`). It is syntactically legal, but will fail to # resolve to anything (see test_edgeql_expr_paths_03). """ SELECT .1; """
SELECT .1;
test_edgeql_syntax_constants_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_constants_42(self): """ SELECT $select; """
SELECT $select;
test_edgeql_syntax_constants_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_constants_43(self): """ SELECT -0n; SELECT 0n; SELECT 1n; SELECT -1n; SELECT 100000n; SELECT -100000n; SELECT 100_000n; SELECT -100_000n; SELECT -354.32n; SELECT 35400000000000.32n; SELECT -35400000000000000000.32n; SELECT 3.5432e20n; SELECT -3.5432e+20n; SELECT 3.5432e-20n; SELECT 3.543_2e-20n; SELECT 354.32e-20n; % OK % SELECT -0n; SELECT 0n; SELECT 1n; SELECT -1n; SELECT 100000n; SELECT -100000n; SELECT 100_000n; SELECT -100_000n; SELECT -354.32n; SELECT 35400000000000.32n; SELECT -35400000000000000000.32n; SELECT 3.5432e20n; SELECT -3.5432e+20n; SELECT 3.5432e-20n; SELECT 3.543_2e-20n; SELECT 354.32e-20n; """
SELECT -0n; SELECT 0n; SELECT 1n; SELECT -1n; SELECT 100000n; SELECT -100000n; SELECT 100_000n; SELECT -100_000n; SELECT -354.32n; SELECT 35400000000000.32n; SELECT -35400000000000000000.32n; SELECT 3.5432e20n; SELECT -3.5432e+20n; SELECT 3.5432e-20n; SELECT 3.543_2e-20n; SELECT 354.32e-20n; % OK % SELECT -0n; SELECT 0n; SELECT 1n; SELECT -1n; SELECT 100000n; SELECT -100000n; SELECT 100_000n; SELECT -100_000n; SELECT -354.32n; SELECT 35400000000000.32n; SELECT -35400000000000000000.32n; SELECT 3.5432e20n; SELECT -3.5432e+20n; SELECT 3.5432e-20n; SELECT 3.543_2e-20n; SELECT 354.32e-20n;
test_edgeql_syntax_constants_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_constants_44(self): """ SELECT 1 n; """
SELECT 1 n;
test_edgeql_syntax_constants_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_constants_45(self): """ SELECT 123e+100n; SELECT 123e100n; % OK % SELECT 123e+100n; SELECT 123e100n; """
SELECT 123e+100n; SELECT 123e100n; % OK % SELECT 123e+100n; SELECT 123e100n;
test_edgeql_syntax_constants_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_ops_01(self): """SELECT 40 >> 2;"""
SELECT 40 >> 2;
test_edgeql_syntax_ops_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_ops_02(self): """SELECT 40 << 2;"""
SELECT 40 << 2;
test_edgeql_syntax_ops_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_ops_03(self): """ SELECT (40 <= 2); SELECT (40 >= 2); """
SELECT (40 <= 2); SELECT (40 >= 2);
test_edgeql_syntax_ops_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_ops_04(self): """ SELECT 1 + 2; SELECT (1 + 2); SELECT (1) + 2; SELECT (((1) + (2))); % OK % SELECT (1 + 2); SELECT (1 + 2); SELECT (1 + 2); SELECT (1 + 2); """
SELECT 1 + 2; SELECT (1 + 2); SELECT (1) + 2; SELECT (((1) + (2))); % OK % SELECT (1 + 2); SELECT (1 + 2); SELECT (1 + 2); SELECT (1 + 2);
test_edgeql_syntax_ops_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_ops_05(self): """ SELECT User.age + 2; SELECT (User.age + 2); SELECT (User.age) + 2; SELECT (((User.age) + (2))); % OK % SELECT (User.age + 2); SELECT (User.age + 2); SELECT (User.age + 2); SELECT (User.age + 2); """
SELECT User.age + 2; SELECT (User.age + 2); SELECT (User.age) + 2; SELECT (((User.age) + (2))); % OK % SELECT (User.age + 2); SELECT (User.age + 2); SELECT (User.age + 2); SELECT (User.age + 2);
test_edgeql_syntax_ops_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_ops_06(self): """ SELECT (40 + 2); SELECT (40 - 2); SELECT (40 * 2); SELECT (40 / 2); SELECT (40 % 2); SELECT (40 ^ 2); SELECT (40 < 2); SELECT (40 > 2); SELECT (40 <= 2); SELECT (40 >= 2); SELECT (40 = 2); SELECT (40 != 2); """
SELECT (40 + 2); SELECT (40 - 2); SELECT (40 * 2); SELECT (40 / 2); SELECT (40 % 2); SELECT (40 ^ 2); SELECT (40 < 2); SELECT (40 > 2); SELECT (40 <= 2); SELECT (40 >= 2); SELECT (40 = 2); SELECT (40 != 2);
test_edgeql_syntax_ops_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_ops_07(self): """ SELECT 40 == 2; """
SELECT 40 == 2;
test_edgeql_syntax_ops_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_ops_08(self): """ SELECT (User.age + 2); SELECT (User.age - 2); SELECT (User.age * 2); SELECT (User.age / 2); SELECT (User.age % 2); SELECT (User.age ^ 2); SELECT (User.age < 2); SELECT (User.age > 2); SELECT (User.age <= 2); SELECT (User.age >= 2); SELECT (User.age = 2); SELECT (User.age != 2); """
SELECT (User.age + 2); SELECT (User.age - 2); SELECT (User.age * 2); SELECT (User.age / 2); SELECT (User.age % 2); SELECT (User.age ^ 2); SELECT (User.age < 2); SELECT (User.age > 2); SELECT (User.age <= 2); SELECT (User.age >= 2); SELECT (User.age = 2); SELECT (User.age != 2);
test_edgeql_syntax_ops_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_ops_09(self): """ SELECT (Foo.foo AND Foo.bar); SELECT (Foo.foo OR Foo.bar); SELECT NOT (Foo.foo); """
SELECT (Foo.foo AND Foo.bar); SELECT (Foo.foo OR Foo.bar); SELECT NOT (Foo.foo);
test_edgeql_syntax_ops_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_ops_10(self): """ SELECT (User.name IN {'Alice', 'Bob'}); SELECT (User.name NOT IN {'Alice', 'Bob'}); """
SELECT (User.name IN {'Alice', 'Bob'}); SELECT (User.name NOT IN {'Alice', 'Bob'});
test_edgeql_syntax_ops_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_ops_11(self): """ SELECT (User.name LIKE 'Al%'); SELECT (User.name ILIKE 'al%'); SELECT (User.name NOT LIKE 'Al%'); SELECT (User.name NOT ILIKE 'al%'); """
SELECT (User.name LIKE 'Al%'); SELECT (User.name ILIKE 'al%'); SELECT (User.name NOT LIKE 'Al%'); SELECT (User.name NOT ILIKE 'al%');
test_edgeql_syntax_ops_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_ops_12(self): """ SELECT EXISTS (User.groups.description); """
SELECT EXISTS (User.groups.description);
test_edgeql_syntax_ops_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_ops_14(self): """ SELECT -1 + 2 * 3 - 5 - 6 / 2 > 0 OR 25 % 4 = 3 AND 42 IN {12, 42, 14}; % OK % SELECT ( ( ( ((-1 + (2 * 3)) - 5) - (6 / 2) ) > 0 ) OR ( ((25 % 4) = 3) AND (42 IN {12, 42, 14}) ) ); """
SELECT -1 + 2 * 3 - 5 - 6 / 2 > 0 OR 25 % 4 = 3 AND 42 IN {12, 42, 14}; % OK % SELECT ( ( ( ((-1 + (2 * 3)) - 5) - (6 / 2) ) > 0 ) OR ( ((25 % 4) = 3) AND (42 IN {12, 42, 14}) ) );
test_edgeql_syntax_ops_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_ops_15(self): """ SELECT ((-1 + 2) * 3 - (5 - 6) / 2 > 0 OR 25 % 4 = 3) AND 42 IN {12, 42, 14}; % OK % SELECT ( ( ( ( ((- 1 + 2) * 3) - ((5 - 6) / 2) ) > 0 ) OR ((25 % 4) = 3) ) AND (42 IN {12, 42, 14}) ); """
SELECT ((-1 + 2) * 3 - (5 - 6) / 2 > 0 OR 25 % 4 = 3) AND 42 IN {12, 42, 14}; % OK % SELECT ( ( ( ( ((- 1 + 2) * 3) - ((5 - 6) / 2) ) > 0 ) OR ((25 % 4) = 3) ) AND (42 IN {12, 42, 14}) );
test_edgeql_syntax_ops_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_ops_16(self): """ SELECT (42 IF foo ELSE 24); SELECT ( 42 IF Foo.bar ELSE ( 43 IF Foo.baz ELSE 44 ) ); """
SELECT (42 IF foo ELSE 24); SELECT ( 42 IF Foo.bar ELSE ( 43 IF Foo.baz ELSE 44 ) );
test_edgeql_syntax_ops_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_ops_17(self): """ SELECT 42 IF Foo.bar ELSE 43 IF Foo.baz ELSE 44; % OK % SELECT ( 42 IF Foo.bar ELSE ( 43 IF Foo.baz ELSE 44 ) ); """
SELECT 42 IF Foo.bar ELSE 43 IF Foo.baz ELSE 44; % OK % SELECT ( 42 IF Foo.bar ELSE ( 43 IF Foo.baz ELSE 44 ) );
test_edgeql_syntax_ops_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_ops_18(self): """ SELECT 40 + 2 IF Foo.bar ELSE 40 + 3 IF Foo.baz ELSE 40 + 4; % OK % SELECT ( (40 + 2) IF Foo.bar ELSE ( (40 + 3) IF Foo.baz ELSE (40 + 4) ) ); """
SELECT 40 + 2 IF Foo.bar ELSE 40 + 3 IF Foo.baz ELSE 40 + 4; % OK % SELECT ( (40 + 2) IF Foo.bar ELSE ( (40 + 3) IF Foo.baz ELSE (40 + 4) ) );
test_edgeql_syntax_ops_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_ops_19(self): """ SELECT >=1; """
SELECT >=1;
test_edgeql_syntax_ops_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_ops_20(self): """ SELECT *1; """
SELECT *1;
test_edgeql_syntax_ops_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_ops_21(self): """ SELECT ~1; """
SELECT ~1;
test_edgeql_syntax_ops_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_ops_22(self): """ SELECT >1; """
SELECT >1;
test_edgeql_syntax_ops_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_ops_23(self): """ SELECT (Foo.a ?= Foo.b); SELECT (Foo.b ?!= Foo.b); """
SELECT (Foo.a ?= Foo.b); SELECT (Foo.b ?!= Foo.b);
test_edgeql_syntax_ops_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_ops_24(self): """ SELECT (User.name IS std::str); SELECT (User IS SystemUser); SELECT (User.name IS NOT std::str); SELECT (User IS NOT SystemUser); SELECT (User.name IS (array<int>)); SELECT (User.name IS (tuple<int, str, array<str>>)); """
SELECT (User.name IS std::str); SELECT (User IS SystemUser); SELECT (User.name IS NOT std::str); SELECT (User IS NOT SystemUser); SELECT (User.name IS (array<int>)); SELECT (User.name IS (tuple<int, str, array<str>>));
test_edgeql_syntax_ops_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_ops_25(self): """ SELECT User IS SystemUser | Foo; SELECT User IS SystemUser & Foo; SELECT User IS SystemUser & Foo | Bar; SELECT User IS SystemUser & Foo | Bar | (array<int>); % OK % SELECT (User IS (SystemUser | Foo)); SELECT (User IS (SystemUser & Foo)); SELECT (User IS ((SystemUser & Foo) | Bar)); SELECT (User IS (((SystemUser & Foo) | Bar) | (array<int>))); """
SELECT User IS SystemUser | Foo; SELECT User IS SystemUser & Foo; SELECT User IS SystemUser & Foo | Bar; SELECT User IS SystemUser & Foo | Bar | (array<int>); % OK % SELECT (User IS (SystemUser | Foo)); SELECT (User IS (SystemUser & Foo)); SELECT (User IS ((SystemUser & Foo) | Bar)); SELECT (User IS (((SystemUser & Foo) | Bar) | (array<int>)));
test_edgeql_syntax_ops_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_ops_26(self): """ SELECT (User IS (Named, Text)); """
SELECT (User IS (Named, Text));
test_edgeql_syntax_ops_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_ops_27(self): """ WITH x := {'b', 'a', 't'} SELECT IF x = 'a' THEN 1 ELSE IF x = 'b' THEN 10 ELSE IF x = 'c' THEN 100 ELSE 0; % OK % WITH x := {'b', 'a', 't'} SELECT (IF (x = 'a') THEN 1 ELSE (IF (x = 'b') THEN 10 ELSE (IF (x = 'c') THEN 100 ELSE 0))); """
WITH x := {'b', 'a', 't'} SELECT IF x = 'a' THEN 1 ELSE IF x = 'b' THEN 10 ELSE IF x = 'c' THEN 100 ELSE 0; % OK % WITH x := {'b', 'a', 't'} SELECT (IF (x = 'a') THEN 1 ELSE (IF (x = 'b') THEN 10 ELSE (IF (x = 'c') THEN 100 ELSE 0)));
test_edgeql_syntax_ops_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_ops_28(self): """ SELECT a < b < c; """
SELECT a < b < c;
test_edgeql_syntax_ops_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_ops_29(self): """ SELECT a < b > c; """
SELECT a < b > c;
test_edgeql_syntax_ops_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_ops_30(self): """ SELECT (a < b) > c; % OK % SELECT ((a < b) > c); """
SELECT (a < b) > c; % OK % SELECT ((a < b) > c);
test_edgeql_syntax_ops_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_ops_31(self): """ SELECT a <= b >= c; """
SELECT a <= b >= c;
test_edgeql_syntax_ops_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_ops_32(self): """ SELECT a != b != c; """
SELECT a != b != c;
test_edgeql_syntax_ops_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_ops_33(self): """ SELECT a = b = c; """
SELECT a = b = c;
test_edgeql_syntax_ops_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_toplevel_if(self): """ IF true THEN (SELECT Foo) ELSE (INSERT Foo); """
IF true THEN (SELECT Foo) ELSE (INSERT Foo);
test_edgeql_toplevel_if
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_required_01(self): """ SELECT REQUIRED (User.groups.description); """
SELECT REQUIRED (User.groups.description);
test_edgeql_syntax_required_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_list_01(self): """ SELECT (some_list_fn())[2]; SELECT (some_list_fn())[2:4]; SELECT (some_list_fn())[2:]; SELECT (some_list_fn())[:4]; SELECT (some_list_fn())[-1:]; SELECT (some_list_fn())[:-1]; """
SELECT (some_list_fn())[2]; SELECT (some_list_fn())[2:4]; SELECT (some_list_fn())[2:]; SELECT (some_list_fn())[:4]; SELECT (some_list_fn())[-1:]; SELECT (some_list_fn())[:-1];
test_edgeql_syntax_list_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_name_01(self): """ SELECT bar; SELECT `bar`; SELECT foo::bar; SELECT foo::`bar`; SELECT `foo`::bar; SELECT `foo`::`bar`; SELECT `foo``bar`; SELECT `foo`::`bar```; % OK % SELECT bar; SELECT bar; SELECT foo::bar; SELECT foo::bar; SELECT foo::bar; SELECT foo::bar; SELECT `foo``bar`; SELECT foo::`bar```; """
SELECT bar; SELECT `bar`; SELECT foo::bar; SELECT foo::`bar`; SELECT `foo`::bar; SELECT `foo`::`bar`; SELECT `foo``bar`; SELECT `foo`::`bar```; % OK % SELECT bar; SELECT bar; SELECT foo::bar; SELECT foo::bar; SELECT foo::bar; SELECT foo::bar; SELECT `foo``bar`; SELECT foo::`bar```;
test_edgeql_syntax_name_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_name_02(self): """ SELECT (bar); SELECT (`bar`); SELECT (foo::bar); SELECT (foo::`bar`); SELECT (`foo`::bar); SELECT (`foo`::`bar`); % OK % SELECT bar; SELECT bar; SELECT foo::bar; SELECT foo::bar; SELECT foo::bar; SELECT foo::bar; """
SELECT (bar); SELECT (`bar`); SELECT (foo::bar); SELECT (foo::`bar`); SELECT (`foo`::bar); SELECT (`foo`::`bar`); % OK % SELECT bar; SELECT bar; SELECT foo::bar; SELECT foo::bar; SELECT foo::bar; SELECT foo::bar;
test_edgeql_syntax_name_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_name_03(self): """ SELECT (action); SELECT (`action`); SELECT (event::action); SELECT (event::`action`); SELECT (`event`::action); SELECT (`event`::`action`); % OK % SELECT action; SELECT action; SELECT event::action; SELECT event::action; SELECT event::action; SELECT event::action; """
SELECT (action); SELECT (`action`); SELECT (event::action); SELECT (event::`action`); SELECT (`event`::action); SELECT (`event`::`action`); % OK % SELECT action; SELECT action; SELECT event::action; SELECT event::action; SELECT event::action; SELECT event::action;
test_edgeql_syntax_name_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_name_04(self): """ SELECT (event::select); SELECT (event::`select`); SELECT (`event`::select); SELECT (`event`::`select`); % OK % SELECT event::`select`; SELECT event::`select`; SELECT event::`select`; SELECT event::`select`; """
SELECT (event::select); SELECT (event::`select`); SELECT (`event`::select); SELECT (`event`::`select`); % OK % SELECT event::`select`; SELECT event::`select`; SELECT event::`select`; SELECT event::`select`;
test_edgeql_syntax_name_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_name_05(self): """ SELECT foo.bar; SELECT `foo.bar`; SELECT `foo.bar`::spam; SELECT `foo.bar`::spam.ham; SELECT `foo.bar`::`spam.ham`; SELECT (foo).bar; % OK % SELECT foo.bar; SELECT `foo.bar`; SELECT `foo.bar`::spam; SELECT `foo.bar`::spam.ham; SELECT `foo.bar`::`spam.ham`; SELECT foo.bar; """
SELECT foo.bar; SELECT `foo.bar`; SELECT `foo.bar`::spam; SELECT `foo.bar`::spam.ham; SELECT `foo.bar`::`spam.ham`; SELECT (foo).bar; % OK % SELECT foo.bar; SELECT `foo.bar`; SELECT `foo.bar`::spam; SELECT `foo.bar`::spam.ham; SELECT `foo.bar`::`spam.ham`; SELECT foo.bar;
test_edgeql_syntax_name_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_name_06(self): """ SELECT foo.(bar); """
SELECT foo.(bar);
test_edgeql_syntax_name_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_name_07(self): """ SELECT event; """
SELECT event;
test_edgeql_syntax_name_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_name_08(self): """ SELECT (event::if); SELECT (if::event); """
SELECT (event::if); SELECT (if::event);
test_edgeql_syntax_name_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_name_09(self): """ SELECT (event::select); SELECT (select::event); """
SELECT (event::select); SELECT (select::event);
test_edgeql_syntax_name_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_name_10(self): """ SELECT `@event`; """
SELECT `@event`;
test_edgeql_syntax_name_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_name_11(self): # illegal semantically, but syntactically valid """ SELECT @event; """
SELECT @event;
test_edgeql_syntax_name_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_name_12(self): """ SELECT foo::`@event`; """
SELECT foo::`@event`;
test_edgeql_syntax_name_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_name_13(self): """ SELECT foo::@event; """
SELECT foo::@event;
test_edgeql_syntax_name_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_name_14(self): """ SELECT Foo.`@event`; """
SELECT Foo.`@event`;
test_edgeql_syntax_name_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_name_15(self): """ SELECT (event::`@event`); """
SELECT (event::`@event`);
test_edgeql_syntax_name_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_name_16(self): """ SELECT __Foo__; """
SELECT __Foo__;
test_edgeql_syntax_name_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_name_17(self): """ SELECT __Foo.__bar__; """
SELECT __Foo.__bar__;
test_edgeql_syntax_name_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_name_18(self): """ SELECT `__Foo__`; """
SELECT `__Foo__`;
test_edgeql_syntax_name_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_name_19(self): """ SELECT __Foo.`__bar__`; """
SELECT __Foo.`__bar__`;
test_edgeql_syntax_name_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_name_20(self): """ SELECT __Foo$; """
SELECT __Foo$;
test_edgeql_syntax_name_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_name_21(self): """ SELECT Пример; """
SELECT Пример;
test_edgeql_syntax_name_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_name_22(self): """ SELECT mod::Foo.bar.baz.boo; """
SELECT mod::Foo.bar.baz.boo;
test_edgeql_syntax_name_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_name_23(self): """ SELECT `foo::bar`; """
SELECT `foo::bar`;
test_edgeql_syntax_name_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_name_24(self): """ SELECT ``; """
SELECT ``;
test_edgeql_syntax_name_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_name_25(self): """ SELECT foo::``; """
SELECT foo::``;
test_edgeql_syntax_name_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_name_26(self): """ SELECT ``::Bar; """
SELECT ``::Bar;
test_edgeql_syntax_name_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_name_27(self): """ SELECT `$event`; """
SELECT `$event`;
test_edgeql_syntax_name_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_name_28(self): """ SELECT `ok$event`; """
SELECT `ok$event`;
test_edgeql_syntax_name_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_shape_01(self): """ SELECT Foo {bar}; SELECT (Foo) {bar}; SELECT (((Foo))) {bar}; % OK % SELECT Foo {bar}; SELECT Foo {bar}; SELECT Foo {bar}; """
SELECT Foo {bar}; SELECT (Foo) {bar}; SELECT (((Foo))) {bar}; % OK % SELECT Foo {bar}; SELECT Foo {bar}; SELECT Foo {bar};
test_edgeql_syntax_shape_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_02(self): """ SELECT Foo {bar}; SELECT Foo {@bar}; % OK % SELECT Foo {bar}; SELECT Foo {@bar}; """
SELECT Foo {bar}; SELECT Foo {@bar}; % OK % SELECT Foo {bar}; SELECT Foo {@bar};
test_edgeql_syntax_shape_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_03(self): """ SELECT Foo {[IS Bar].bar}; """
SELECT Foo {[IS Bar].bar};
test_edgeql_syntax_shape_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_04(self): """ SELECT Foo {<bar}; """
SELECT Foo {<bar};
test_edgeql_syntax_shape_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_05(self): """ SELECT Foo { `@foo`:= 42 }; """
SELECT Foo { `@foo`:= 42 };
test_edgeql_syntax_shape_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_06(self): """ SELECT Foo { bar, `@foo`:= 42 }; """
SELECT Foo { bar, `@foo`:= 42 };
test_edgeql_syntax_shape_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_shape_07(self): """ SELECT Foo { bar: { baz, boo }, `@foo`:= 42 }; """
SELECT Foo { bar: { baz, boo }, `@foo`:= 42 };
test_edgeql_syntax_shape_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_shape_08(self): """ SELECT Foo { bar: { baz, `@boo` }, `@foo`:= 42 }; """
SELECT Foo { bar: { baz, `@boo` }, `@foo`:= 42 };
test_edgeql_syntax_shape_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_shape_09(self): """ SELECT Foo { bar: { baz, boo } FILTER `@spam` = 'bad', `@foo`:= 42 }; """
SELECT Foo { bar: { baz, boo } FILTER `@spam` = 'bad', `@foo`:= 42 };
test_edgeql_syntax_shape_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_shape_10(self): """ SELECT Foo { bar: { baz, boo } FILTER spam = 'bad', `@foo`:= 42 }; """
SELECT Foo { bar: { baz, boo } FILTER spam = 'bad', `@foo`:= 42 };
test_edgeql_syntax_shape_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_shape_11(self): """ SELECT Foo { __type__.name }; """
SELECT Foo { __type__.name };
test_edgeql_syntax_shape_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_shape_12(self): """ SELECT Foo { __type__: { name, } }; """
SELECT Foo { __type__: { name, } };
test_edgeql_syntax_shape_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_shape_13(self): """ SELECT Foo { __type__: { name, description, } }; """
SELECT Foo { __type__: { name, description, } };
test_edgeql_syntax_shape_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_shape_14(self): """ SELECT { name := 'foo', description := 'bar' }; """
SELECT { name := 'foo', description := 'bar' };
test_edgeql_syntax_shape_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_shape_15(self): """ SELECT Foo {(bar)}; """
SELECT Foo {(bar)};
test_edgeql_syntax_shape_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_shape_16(self): """ SELECT Foo {[IS Bar].(bar)}; """
SELECT Foo {[IS Bar].(bar)};
test_edgeql_syntax_shape_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_shape_19(self): """ SELECT Issue { number } FILTER (((Issue)).number) = '1'; SELECT (Issue) { number } FILTER (((Issue)).number) = '1'; % OK % SELECT Issue { number } FILTER (Issue.number = '1'); SELECT Issue { number } FILTER (Issue.number = '1'); """
SELECT Issue { number } FILTER (((Issue)).number) = '1'; SELECT (Issue) { number } FILTER (((Issue)).number) = '1'; % OK % SELECT Issue { number } FILTER (Issue.number = '1'); SELECT Issue { number } FILTER (Issue.number = '1');
test_edgeql_syntax_shape_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_shape_20(self): """ INSERT Foo{ bar: { @weight, # this syntax may be valid in the future [IS BarLink]@special, } }; """
INSERT Foo{ bar: { @weight, # this syntax may be valid in the future [IS BarLink]@special, } };
test_edgeql_syntax_shape_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_shape_21(self): """ INSERT Foo{ bar := 'some_string_val' { @weight := 3 } }; """
INSERT Foo{ bar := 'some_string_val' { @weight := 3 } };
test_edgeql_syntax_shape_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_shape_23(self): """ SELECT 'Foo' { bar := 42 }; """
SELECT 'Foo' { bar := 42 };
test_edgeql_syntax_shape_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_shape_24(self): """ SELECT Foo { spam } { bar := 42 }; """
SELECT Foo { spam } { bar := 42 };
test_edgeql_syntax_shape_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_shape_25(self): """ SELECT Foo.bar AS bar; """
SELECT Foo.bar AS bar;
test_edgeql_syntax_shape_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_shape_26(self): """ SELECT Issue{ name, related_to *, }; """
SELECT Issue{ name, related_to *, };
test_edgeql_syntax_shape_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_shape_27(self): """ SELECT Issue{ name, related_to *5, }; """
SELECT Issue{ name, related_to *5, };
test_edgeql_syntax_shape_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_shape_28(self): """ SELECT Issue{ name, related_to *-1, }; """
SELECT Issue{ name, related_to *-1, };
test_edgeql_syntax_shape_28
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0