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_delete_01(self): """ DELETE Foo; """
DELETE Foo;
test_edgeql_syntax_delete_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_delete_02(self): """ DELETE Foo; """
DELETE Foo;
test_edgeql_syntax_delete_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_delete_03(self): # NOTE: this must be rejected by the compiler """ DELETE 42; """
DELETE 42;
test_edgeql_syntax_delete_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_delete_04(self): # this is legal and equivalent to DELETE Foo; """ DELETE Foo{bar}; """
DELETE Foo{bar};
test_edgeql_syntax_delete_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_delete_05(self): """ DELETE User.name FILTER (User.age > 42) ORDER BY User.name ASC OFFSET 2 LIMIT 5; """
DELETE User.name FILTER (User.age > 42) ORDER BY User.name ASC OFFSET 2 LIMIT 5;
test_edgeql_syntax_delete_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_delete_06(self): """ SELECT ( DELETE Foo bar ); """
SELECT ( DELETE Foo bar );
test_edgeql_syntax_delete_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_update_01(self): """ UPDATE Foo SET {bar := 42}; UPDATE Foo FILTER (Foo.bar = 24) SET {bar := 42}; """
UPDATE Foo SET {bar := 42}; UPDATE Foo FILTER (Foo.bar = 24) SET {bar := 42};
test_edgeql_syntax_update_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_update_02(self): """ UPDATE Foo SET {bar := 42}; UPDATE Foo FILTER (Foo.bar = 24) SET {bar := 42}; """
UPDATE Foo SET {bar := 42}; UPDATE Foo FILTER (Foo.bar = 24) SET {bar := 42};
test_edgeql_syntax_update_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_update_03(self): """ UPDATE 42; """
UPDATE 42;
test_edgeql_syntax_update_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_update_04(self): """ UPDATE Foo; """
UPDATE Foo;
test_edgeql_syntax_update_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_update_07(self): """ UPDATE Foo FILTER (Foo.bar = 24) SET { bar := 42, baz := 'spam', ham: { taste := 'yummy' } }; """
UPDATE Foo FILTER (Foo.bar = 24) SET { bar := 42, baz := 'spam', ham: { taste := 'yummy' } };
test_edgeql_syntax_update_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_update_08(self): """ WITH x := ( UPDATE Foo FILTER .bar bad = 24 SET { bar := 42, }; ) SELECT x """
WITH x := ( UPDATE Foo FILTER .bar bad = 24 SET { bar := 42, }; ) SELECT x
test_edgeql_syntax_update_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_insertfor_01(self): """ FOR name IN {'a', 'b', 'c'} UNION (INSERT User{name := name}); FOR name IN {'a', 'b', Foo.bar, Foo.baz} UNION (INSERT User{name := name}); """
FOR name IN {'a', 'b', 'c'} UNION (INSERT User{name := name}); FOR name IN {'a', 'b', Foo.bar, Foo.baz} UNION (INSERT User{name := name});
test_edgeql_syntax_insertfor_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_insertfor_02(self): """ FOR name IN {'a' UNION 'b' UNION 'c'} UNION (INSERT User{name := name}); % OK % FOR name IN {(('a' UNION 'b') UNION 'c')} UNION (INSERT User{name := name}); """
FOR name IN {'a' UNION 'b' UNION 'c'} UNION (INSERT User{name := name}); % OK % FOR name IN {(('a' UNION 'b') UNION 'c')} UNION (INSERT User{name := name});
test_edgeql_syntax_insertfor_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_insertfor_03(self): """ FOR name IN {(SELECT Foo.bar FILTER (Foo.bar.baz = TRUE))} UNION (INSERT Foo{name := name}); """
FOR name IN {(SELECT Foo.bar FILTER (Foo.bar.baz = TRUE))} UNION (INSERT Foo{name := name});
test_edgeql_syntax_insertfor_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_insertfor_04(self): """ FOR bar IN {(INSERT Bar{name := 'bar'})} UNION (INSERT Foo{name := bar.name}); """
FOR bar IN {(INSERT Bar{name := 'bar'})} UNION (INSERT Foo{name := bar.name});
test_edgeql_syntax_insertfor_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_insertfor_05(self): """ FOR bar IN {(DELETE Bar)} UNION (INSERT Foo{name := bar.name}); """
FOR bar IN {(DELETE Bar)} UNION (INSERT Foo{name := bar.name});
test_edgeql_syntax_insertfor_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_insertfor_06(self): """ FOR bar IN {( UPDATE Bar SET {name := (name ++ 'bar')} )} UNION (INSERT Foo{name := bar.name}); """
FOR bar IN {( UPDATE Bar SET {name := (name ++ 'bar')} )} UNION (INSERT Foo{name := bar.name});
test_edgeql_syntax_insertfor_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_selectfor_01(self): """ FOR x IN {(('Alice', 'White') UNION ('Bob', 'Green'))} UNION ( SELECT User{first_tname, last_name, age} FILTER ( (.first_name = x.0) AND (.last_name = x.1) ) ); """
FOR x IN {(('Alice', 'White') UNION ('Bob', 'Green'))} UNION ( SELECT User{first_tname, last_name, age} FILTER ( (.first_name = x.0) AND (.last_name = x.1) ) );
test_edgeql_syntax_selectfor_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_selectfor_02(self): """ SELECT (FOR s IN array_unpack([1, 2, 3]) UNION s); """
SELECT (FOR s IN array_unpack([1, 2, 3]) UNION s);
test_edgeql_syntax_selectfor_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_selectfor_03(self): """ WITH x := ( FOR s IN array_unpack([1, 2, 3]) UNION s ) SELECT x; """
WITH x := ( FOR s IN array_unpack([1, 2, 3]) UNION s ) SELECT x;
test_edgeql_syntax_selectfor_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_selectfor_04(self): """ WITH x := ( FOR s IN {array_unpack([1, 2, 3])} UNION s bad ) SELECT x; """
WITH x := ( FOR s IN {array_unpack([1, 2, 3])} UNION s bad ) SELECT x;
test_edgeql_syntax_selectfor_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_selectfor_05(self): """ FOR x IN {1, 2, 3} UNION y := (x + 2); """
FOR x IN {1, 2, 3} UNION y := (x + 2);
test_edgeql_syntax_selectfor_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_selectfor_06(self): """ FOR x in DETACHED foo UNION x; """
FOR x in DETACHED foo UNION x;
test_edgeql_syntax_selectfor_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_selectfor_08(self): """ FOR x in foo + bar UNION x; """
FOR x in foo + bar UNION x;
test_edgeql_syntax_selectfor_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_selectfor_09(self): """ FOR x in foo.bar + bar UNION x; """
FOR x in foo.bar + bar UNION x;
test_edgeql_syntax_selectfor_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_selectfor_10(self): """ FOR x in foo { x } UNION x; """
FOR x in foo { x } UNION x;
test_edgeql_syntax_selectfor_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_selectfor_11(self): """ FOR x in SELECT 1 UNION x; """
FOR x in SELECT 1 UNION x;
test_edgeql_syntax_selectfor_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_selectfor_12(self): """ FOR x in Foo UNION x; """
FOR x in Foo UNION x;
test_edgeql_syntax_selectfor_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_selectfor_13(self): """ FOR x in Foo.bar UNION x; """
FOR x in Foo.bar UNION x;
test_edgeql_syntax_selectfor_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_selectfor_14(self): """ FOR x in (SELECT 1) UNION x; """
FOR x in (SELECT 1) UNION x;
test_edgeql_syntax_selectfor_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_selectfor_15(self): """ FOR x in [1,2,3] UNION x; """
FOR x in [1,2,3] UNION x;
test_edgeql_syntax_selectfor_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_selectfor_16(self): """ FOR x in (1,2,3) UNION x; """
FOR x in (1,2,3) UNION x;
test_edgeql_syntax_selectfor_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_selectfor_17(self): """ FOR x in .test UNION x; """
FOR x in .test UNION x;
test_edgeql_syntax_selectfor_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_selectfor_18(self): """ FOR x in ({1,2} + {3,4}) UNION x; """
FOR x in ({1,2} + {3,4}) UNION x;
test_edgeql_syntax_selectfor_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_selectfor_19(self): """ FOR x in <datetime>'1999-03-31T15:17:00Z' UNION x; """
FOR x in <datetime>'1999-03-31T15:17:00Z' UNION x;
test_edgeql_syntax_selectfor_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_selectfor_20(self): """ FOR x in <datetime>'1999-03-31T15:17:00Z'++'' UNION x; """
FOR x in <datetime>'1999-03-31T15:17:00Z'++'' UNION x;
test_edgeql_syntax_selectfor_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_deletefor_01(self): """ FOR x IN {(('Alice', 'White') UNION ('Bob', 'Green'))} UNION ( DELETE ( SELECT User FILTER ( (.first_name = x.0) AND (.last_name = x.1) ) ) ); """
FOR x IN {(('Alice', 'White') UNION ('Bob', 'Green'))} UNION ( DELETE ( SELECT User FILTER ( (.first_name = x.0) AND (.last_name = x.1) ) ) );
test_edgeql_syntax_deletefor_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_updatefor_01(self): """ FOR x IN {((1, 'a') UNION (2, 'b'))} UNION (UPDATE Foo FILTER (Foo.id = x.0) SET {bar := x.1}); """
FOR x IN {((1, 'a') UNION (2, 'b'))} UNION (UPDATE Foo FILTER (Foo.id = x.0) SET {bar := x.1});
test_edgeql_syntax_updatefor_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_shorterfor_01(self): """ FOR x IN {1} INSERT Foo { x := x }; """
FOR x IN {1} INSERT Foo { x := x };
test_edgeql_syntax_shorterfor_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_shorterfor_02(self): """ FOR x IN 1 WITH y := x INSERT Foo { y := y }; """
FOR x IN 1 WITH y := x INSERT Foo { y := y };
test_edgeql_syntax_shorterfor_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_coalesce_01(self): """ SELECT (a ?? x); SELECT (a ?? x.a); SELECT (a ?? x.a[IS ABC]); SELECT ((a ?? x.a[IS ABC]@aaa) + 1); """
SELECT (a ?? x); SELECT (a ?? x.a); SELECT (a ?? x.a[IS ABC]); SELECT ((a ?? x.a[IS ABC]@aaa) + 1);
test_edgeql_syntax_coalesce_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_function_01(self): """ SELECT foo(); SELECT bar(User.name); SELECT baz(User.name, User.age); SELECT str_lower(User.name); """
SELECT foo(); SELECT bar(User.name); SELECT baz(User.name, User.age); SELECT str_lower(User.name);
test_edgeql_syntax_function_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_function_02(self): """ SELECT str_lower(string := User.name); SELECT baz(age := User.age, of := User.name, `select` := 1); """
SELECT str_lower(string := User.name); SELECT baz(age := User.age, of := User.name, `select` := 1);
test_edgeql_syntax_function_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_function_03(self): """ SELECT some_agg(User.name ORDER BY User.age ASC); SELECT some_agg(User.name FILTER (strlen(User.name) > 2) ORDER BY User.age DESC); SELECT some_agg(User.name FILTER (strlen(User.name) > 2) ORDER BY User.age DESC THEN User.email ASC); SELECT some_agg( Post.title ORDER BY Post.date ASC, User.name FILTER (strlen(User.name) > 2) ORDER BY User.age DESC THEN User.email ASC ); """
SELECT some_agg(User.name ORDER BY User.age ASC); SELECT some_agg(User.name FILTER (strlen(User.name) > 2) ORDER BY User.age DESC); SELECT some_agg(User.name FILTER (strlen(User.name) > 2) ORDER BY User.age DESC THEN User.email ASC); SELECT some_agg( Post.title ORDER BY Post.date ASC, User.name FILTER (strlen(User.name) > 2) ORDER BY User.age DESC THEN User.email ASC );
test_edgeql_syntax_function_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_function_04(self): """ SELECT some_agg(User.name) OVER (ORDER BY User.age ASC); SELECT some_agg(User.name) OVER ( PARTITION BY strlen(User.name) ORDER BY User.age ASC); SELECT some_agg(User.name) OVER ( PARTITION BY User.email, User.age ORDER BY User.age ASC); SELECT some_agg(User.name) OVER ( PARTITION BY User.email, User.age ORDER BY User.age ASC THEN User.name ASC); """
SELECT some_agg(User.name) OVER (ORDER BY User.age ASC); SELECT some_agg(User.name) OVER ( PARTITION BY strlen(User.name) ORDER BY User.age ASC); SELECT some_agg(User.name) OVER ( PARTITION BY User.email, User.age ORDER BY User.age ASC); SELECT some_agg(User.name) OVER ( PARTITION BY User.email, User.age ORDER BY User.age ASC THEN User.name ASC);
test_edgeql_syntax_function_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_function_05(self): """ SELECT count(ALL 1); """
SELECT count(ALL 1);
test_edgeql_syntax_function_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_function_06(self): """ SELECT count(1, a := 1, b := 1, 2); """
SELECT count(1, a := 1, b := 1, 2);
test_edgeql_syntax_function_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_function_07(self): """ SELECT count(1, a := 1, a := 1); """
SELECT count(1, a := 1, a := 1);
test_edgeql_syntax_function_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_function_08(self): """ SELECT count(1, $a := 1); """
SELECT count(1, $a := 1);
test_edgeql_syntax_function_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_function_09(self): """ SELECT bar(User.name,); SELECT baz(User.name, User.age,); SELECT str_lower(string := User.name,); SELECT baz(age := User.age, of := User.name, `select` := 1,); % OK % SELECT bar(User.name); SELECT baz(User.name, User.age); SELECT str_lower(string := User.name); SELECT baz(age := User.age, of := User.name, `select` := 1); """
SELECT bar(User.name,); SELECT baz(User.name, User.age,); SELECT str_lower(string := User.name,); SELECT baz(age := User.age, of := User.name, `select` := 1,); % OK % SELECT bar(User.name); SELECT baz(User.name, User.age); SELECT str_lower(string := User.name); SELECT baz(age := User.age, of := User.name, `select` := 1);
test_edgeql_syntax_function_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_function_10(self): """ SELECT foo(1 User); """
SELECT foo(1 User);
test_edgeql_syntax_function_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_function_11(self): """ SELECT baz(x := User.age y := User.name); """
SELECT baz(x := User.age y := User.name);
test_edgeql_syntax_function_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_function_12(self): """ SELECT count(SELECT 1); """
SELECT count(SELECT 1);
test_edgeql_syntax_function_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_function_13(self): """ SELECT count(INSERT Foo); """
SELECT count(INSERT Foo);
test_edgeql_syntax_function_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_function_14(self): """ SELECT count(UPDATE Foo SET {bar := 1}); """
SELECT count(UPDATE Foo SET {bar := 1});
test_edgeql_syntax_function_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_function_15(self): """ SELECT count(DELETE Foo); """
SELECT count(DELETE Foo);
test_edgeql_syntax_function_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_function_16(self): """ SELECT count(FOR X IN {Foo} UNION X); """
SELECT count(FOR X IN {Foo} UNION X);
test_edgeql_syntax_function_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_function_17(self): """ SELECT count(WITH X := 1 SELECT Foo FILTER .bar = X); """
SELECT count(WITH X := 1 SELECT Foo FILTER .bar = X);
test_edgeql_syntax_function_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_function_18(self): """ SELECT (count(SELECT 1) 1); """
SELECT (count(SELECT 1) 1);
test_edgeql_syntax_function_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_function_19(self): """ SELECT ((((count(SELECT 1))))); """
SELECT ((((count(SELECT 1)))));
test_edgeql_syntax_function_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_function_20(self): """ SELECT ((((count(foo 1))))); """
SELECT ((((count(foo 1)))));
test_edgeql_syntax_function_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_function_21(self): """ SELECT ((((count(foo, 1)) bar))); """
SELECT ((((count(foo, 1)) bar)));
test_edgeql_syntax_function_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_function_22(self): """ SELECT count((((((((((SELECT 1)))))))))); % OK % SELECT count((SELECT 1)); """
SELECT count((((((((((SELECT 1)))))))))); % OK % SELECT count((SELECT 1));
test_edgeql_syntax_function_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_function_23(self): """ SELECT (count((SELECT 1)) 2); """
SELECT (count((SELECT 1)) 2);
test_edgeql_syntax_function_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_function_24(self): """ SELECT [count((SELECT 1)) 2]; """
SELECT [count((SELECT 1)) 2];
test_edgeql_syntax_function_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_function_25(self): """ SELECT count((0, 1) 2); """
SELECT count((0, 1) 2);
test_edgeql_syntax_function_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_function_26(self): """ SELECT count((0, 1) foo); """
SELECT count((0, 1) foo);
test_edgeql_syntax_function_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_function_27(self): """ SELECT count([0, 1] 2); """
SELECT count([0, 1] 2);
test_edgeql_syntax_function_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_function_28(self): """ SELECT count([0, 1] foo); """
SELECT count([0, 1] foo);
test_edgeql_syntax_function_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_function_29(self): """ SELECT count(([1]) 2); """
SELECT count(([1]) 2);
test_edgeql_syntax_function_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_tuple_01(self): """ SELECT ('foo', 42).0; SELECT ('foo', 42).1; """
SELECT ('foo', 42).0; SELECT ('foo', 42).1;
test_edgeql_syntax_tuple_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_tuple_02(self): """ SELECT (name := 'foo', val := 42).name; SELECT (name := 'foo', val := 42).val; """
SELECT (name := 'foo', val := 42).name; SELECT (name := 'foo', val := 42).val;
test_edgeql_syntax_tuple_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_tuple_03(self): """ SELECT (); """
SELECT ();
test_edgeql_syntax_tuple_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_tuple_04(self): """ SELECT ( 1 User ); """
SELECT ( 1 User );
test_edgeql_syntax_tuple_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_tuple_05(self): """ SELECT ( User 1 ); """
SELECT ( User 1 );
test_edgeql_syntax_tuple_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_tuple_06(self): """ SELECT ( False True ); """
SELECT ( False True );
test_edgeql_syntax_tuple_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_tuple_07(self): """ SELECT ( 'a' 'b' ); """
SELECT ( 'a' 'b' );
test_edgeql_syntax_tuple_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_tuple_08(self): """ SELECT ((((1 2)))); """
SELECT ((((1 2))));
test_edgeql_syntax_tuple_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_tuple_09(self): """ SELECT ((1, 2) (3, 4)); """
SELECT ((1, 2) (3, 4));
test_edgeql_syntax_tuple_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_tuple_10(self): """ SELECT (0 (1, 2)); """
SELECT (0 (1, 2));
test_edgeql_syntax_tuple_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_tuple_11(self): """ SELECT (0 (((1 2) 3)) 4); """
SELECT (0 (((1 2) 3)) 4);
test_edgeql_syntax_tuple_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_tuple_12(self): """ SELECT (0, (((1 2) 3)) 4); """
SELECT (0, (((1 2) 3)) 4);
test_edgeql_syntax_tuple_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_tuple_13(self): """ SELECT (0, (((1, 2) 3)) 4); """
SELECT (0, (((1, 2) 3)) 4);
test_edgeql_syntax_tuple_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_tuple_14(self): """ SELECT (0, (((1, 2), 3)) 4); """
SELECT (0, (((1, 2), 3)) 4);
test_edgeql_syntax_tuple_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_tuple_15(self): """ SELECT (0, (((1, 2), 3)), 4); % OK % SELECT (0, ((1, 2), 3), 4); """
SELECT (0, (((1, 2), 3)), 4); % OK % SELECT (0, ((1, 2), 3), 4);
test_edgeql_syntax_tuple_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_tuple_16(self): """ SELECT (foo (((1 2) 3)) 4); """
SELECT (foo (((1 2) 3)) 4);
test_edgeql_syntax_tuple_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_tuple_17(self): """ SELECT ((((1, 2)))); % OK % SELECT (1, 2); """
SELECT ((((1, 2)))); % OK % SELECT (1, 2);
test_edgeql_syntax_tuple_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_introspect_01(self): """ SELECT INTROSPECT std::int64; """
SELECT INTROSPECT std::int64;
test_edgeql_syntax_introspect_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_introspect_02(self): """ SELECT INTROSPECT (tuple<str>); """
SELECT INTROSPECT (tuple<str>);
test_edgeql_syntax_introspect_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_introspect_03(self): """ SELECT INTROSPECT TYPEOF '1'; """
SELECT INTROSPECT TYPEOF '1';
test_edgeql_syntax_introspect_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_introspect_04(self): """ SELECT INTROSPECT TYPEOF (3 + 2); """
SELECT INTROSPECT TYPEOF (3 + 2);
test_edgeql_syntax_introspect_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_introspect_05(self): """ SELECT INTROSPECT tuple<int64>; """
SELECT INTROSPECT tuple<int64>;
test_edgeql_syntax_introspect_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_database_01(self): """ CREATE DATABASE mytestdb; DROP DATABASE mytestdb; CREATE DATABASE `mytest"db"`; DROP DATABASE `mytest"db"`; """
CREATE DATABASE mytestdb; DROP DATABASE mytestdb; CREATE DATABASE `mytest"db"`; DROP DATABASE `mytest"db"`;
test_edgeql_syntax_ddl_database_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_database_02(self): """ CREATE DATABASE (mytestdb); """
CREATE DATABASE (mytestdb);
test_edgeql_syntax_ddl_database_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_database_03(self): """ CREATE DATABASE foo::mytestdb; """
CREATE DATABASE foo::mytestdb;
test_edgeql_syntax_ddl_database_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_database_04(self): """ CREATE DATABASE if; CREATE DATABASE abstract; % OK % CREATE DATABASE `if`; CREATE DATABASE abstract; """
CREATE DATABASE if; CREATE DATABASE abstract; % OK % CREATE DATABASE `if`; CREATE DATABASE abstract;
test_edgeql_syntax_ddl_database_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_database_05(self): """ DROP DATABASE if; DROP DATABASE abstract; % OK % DROP DATABASE `if`; DROP DATABASE abstract; """
DROP DATABASE if; DROP DATABASE abstract; % OK % DROP DATABASE `if`; DROP DATABASE abstract;
test_edgeql_syntax_ddl_database_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_branch_01(self): """ CREATE EMPTY BRANCH mytestdb; DROP BRANCH mytestdb; CREATE EMPTY BRANCH `mytest"db"`; DROP BRANCH `mytest"db"`; """
CREATE EMPTY BRANCH mytestdb; DROP BRANCH mytestdb; CREATE EMPTY BRANCH `mytest"db"`; DROP BRANCH `mytest"db"`;
test_edgeql_syntax_ddl_branch_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_branch_02(self): """ CREATE EMPTY BRANCH (mytestdb); """
CREATE EMPTY BRANCH (mytestdb);
test_edgeql_syntax_ddl_branch_02
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0