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_map_05(self): """ SELECT [1, 2, 1->2, 3]; """
SELECT [1, 2, 1->2, 3];
test_edgeql_syntax_map_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_sequence_01(self): """ SELECT (User.name); # not a sequence SELECT (User.name,); SELECT (User.name, User.age, 'comment'); SELECT (User.name, User.age, 'comment',); SELECT (User.name != 'Alice', User.age < 42, 'comment'); % OK % SELECT User.name; SELECT (User.name,); SELECT (User.name, User.age, 'comment'); SELECT (User.name, User.age, 'comment'); SELECT ((User.name != 'Alice'), (User.age < 42), 'comment'); """
SELECT (User.name); # not a sequence SELECT (User.name,); SELECT (User.name, User.age, 'comment'); SELECT (User.name, User.age, 'comment',); SELECT (User.name != 'Alice', User.age < 42, 'comment'); % OK % SELECT User.name; SELECT (User.name,); SELECT (User.name, User.age, 'comment'); SELECT (User.name, User.age, 'comment'); SELECT ((User.name != 'Alice'), (User.age < 42), 'comment');
test_edgeql_syntax_sequence_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_array_01(self): """ SELECT [1]; SELECT [1, 2, 3, 4, 5]; SELECT [User.name, User.description]; SELECT [User.name, User.description, 'filler']; """
SELECT [1]; SELECT [1, 2, 3, 4, 5]; SELECT [User.name, User.description]; SELECT [User.name, User.description, 'filler'];
test_edgeql_syntax_array_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_array_02(self): """ SELECT [1, 2, 3, 4, 5][2]; SELECT [1, 2, 3, 4, 5][2:4]; % OK % SELECT ([1, 2, 3, 4, 5])[2]; SELECT ([1, 2, 3, 4, 5])[2:4]; """
SELECT [1, 2, 3, 4, 5][2]; SELECT [1, 2, 3, 4, 5][2:4]; % OK % SELECT ([1, 2, 3, 4, 5])[2]; SELECT ([1, 2, 3, 4, 5])[2:4];
test_edgeql_syntax_array_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_array_03(self): """ SELECT ([1, 2, 3, 4, 5])[2]; SELECT ([1, 2, 3, 4, 5])[2:4]; SELECT ([1, 2, 3, 4, 5])[2:]; SELECT ([1, 2, 3, 4, 5])[:2]; SELECT ([1, 2, 3, 4, 5])[2:-1]; SELECT ([1, 2, 3, 4, 5])[-2:]; SELECT ([1, 2, 3, 4, 5])[:-2]; """
SELECT ([1, 2, 3, 4, 5])[2]; SELECT ([1, 2, 3, 4, 5])[2:4]; SELECT ([1, 2, 3, 4, 5])[2:]; SELECT ([1, 2, 3, 4, 5])[:2]; SELECT ([1, 2, 3, 4, 5])[2:-1]; SELECT ([1, 2, 3, 4, 5])[-2:]; SELECT ([1, 2, 3, 4, 5])[:-2];
test_edgeql_syntax_array_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_array_04(self): """ SELECT ([Foo.bar, Foo.baz, Foo.spam, Foo.ham])[Bar.setting]; SELECT ([Foo.bar, Foo.baz, Foo.spam, Foo.ham])[1:Bar.setting]; SELECT ([Foo.bar, Foo.baz, Foo.spam, Foo.ham])[Bar.setting:]; SELECT ([Foo.bar, Foo.baz, Foo.spam, Foo.ham])[:Bar.setting]; SELECT ([Foo.bar, Foo.baz, Foo.spam, Foo.ham])[:-Bar.setting]; """
SELECT ([Foo.bar, Foo.baz, Foo.spam, Foo.ham])[Bar.setting]; SELECT ([Foo.bar, Foo.baz, Foo.spam, Foo.ham])[1:Bar.setting]; SELECT ([Foo.bar, Foo.baz, Foo.spam, Foo.ham])[Bar.setting:]; SELECT ([Foo.bar, Foo.baz, Foo.spam, Foo.ham])[:Bar.setting]; SELECT ([Foo.bar, Foo.baz, Foo.spam, Foo.ham])[:-Bar.setting];
test_edgeql_syntax_array_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_array_05(self): """ SELECT (get_nested_obj())['a']['b']['c']; """
SELECT (get_nested_obj())['a']['b']['c'];
test_edgeql_syntax_array_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_array_06(self): """ SELECT [ 1 User ]; """
SELECT [ 1 User ];
test_edgeql_syntax_array_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_array_07(self): """ SELECT [ User 1 ]; """
SELECT [ User 1 ];
test_edgeql_syntax_array_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_array_08(self): """ SELECT [ False True ]; """
SELECT [ False True ];
test_edgeql_syntax_array_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_array_09(self): """ SELECT [ 'a' 'b' ]; """
SELECT [ 'a' 'b' ];
test_edgeql_syntax_array_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_array_10(self): """ WITH x := 2 SELECT [1, 2, 3][1 x]; """
WITH x := 2 SELECT [1, 2, 3][1 x];
test_edgeql_syntax_array_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_array_11(self): """ WITH x := 2 SELECT [1, 2, 3][x 1]; """
WITH x := 2 SELECT [1, 2, 3][x 1];
test_edgeql_syntax_array_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_array_12(self): """ SELECT [1, 2, 3][x (1 2).1]; """
SELECT [1, 2, 3][x (1 2).1];
test_edgeql_syntax_array_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_array_13(self): """ SELECT [(1, 2) (2, 3)]; """
SELECT [(1, 2) (2, 3)];
test_edgeql_syntax_array_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_array_14(self): """ SELECT [([1],) ([2],)]; """
SELECT [([1],) ([2],)];
test_edgeql_syntax_array_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_cast_01(self): """ SELECT <float64> (SELECT User.age); """
SELECT <float64> (SELECT User.age);
test_edgeql_syntax_cast_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_cast_02(self): """ SELECT <float64> (((SELECT User.age))); % OK % SELECT <float64> (SELECT User.age); """
SELECT <float64> (((SELECT User.age))); % OK % SELECT <float64> (SELECT User.age);
test_edgeql_syntax_cast_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_cast_03(self): """ SELECT <User {name, description}> [ 'name' -> 'Alice', 'description' -> 'sample' ]; """
SELECT <User {name, description}> [ 'name' -> 'Alice', 'description' -> 'sample' ];
test_edgeql_syntax_cast_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_cast_04(self): """ SELECT -<int64>{}; """
SELECT -<int64>{};
test_edgeql_syntax_cast_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_cast_05(self): """ SELECT <array<int64>>$1; SELECT <std::array<std::str>>$1; SELECT <optional std::array<std::str>>$1; """
SELECT <array<int64>>$1; SELECT <std::array<std::str>>$1; SELECT <optional std::array<std::str>>$1;
test_edgeql_syntax_cast_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_cast_07(self): """ SELECT <tuple<Foo, int, str>>$1; SELECT <std::tuple<obj: Foo, count: int, name: str>>$1; """
SELECT <tuple<Foo, int, str>>$1; SELECT <std::tuple<obj: Foo, count: int, name: str>>$1;
test_edgeql_syntax_cast_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_cast_08(self): """ SELECT <array<int64,>>$1; SELECT <std::array<std::str,>>$1; % OK % SELECT <array<int64>>$1; SELECT <std::array<std::str>>$1; """
SELECT <array<int64,>>$1; SELECT <std::array<std::str,>>$1; % OK % SELECT <array<int64>>$1; SELECT <std::array<std::str>>$1;
test_edgeql_syntax_cast_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_cast_09(self): """ SELECT <tuple<Foo, int, str,>>$1; SELECT <std::tuple<obj: Foo, count: int, name: str,>>$1; % OK % SELECT <tuple<Foo, int, str>>$1; SELECT <std::tuple<obj: Foo, count: int, name: str>>$1; """
SELECT <tuple<Foo, int, str,>>$1; SELECT <std::tuple<obj: Foo, count: int, name: str,>>$1; % OK % SELECT <tuple<Foo, int, str>>$1; SELECT <std::tuple<obj: Foo, count: int, name: str>>$1;
test_edgeql_syntax_cast_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_cast_10(self): """ SELECT <tuple<>>$1; """
SELECT <tuple<>>$1;
test_edgeql_syntax_cast_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_with_01(self): """ WITH extra AS MODULE lib.extra, foo := Bar.foo, baz := (SELECT extra::Foo.baz) SELECT Bar { spam, ham := baz } FILTER (foo = 'special'); % OK % WITH extra AS MODULE `lib.extra`, foo := Bar.foo, baz := (SELECT extra::Foo.baz) SELECT Bar { spam, ham := baz } FILTER (foo = 'special'); """
WITH extra AS MODULE lib.extra, foo := Bar.foo, baz := (SELECT extra::Foo.baz) SELECT Bar { spam, ham := baz } FILTER (foo = 'special'); % OK % WITH extra AS MODULE `lib.extra`, foo := Bar.foo, baz := (SELECT extra::Foo.baz) SELECT Bar { spam, ham := baz } FILTER (foo = 'special');
test_edgeql_syntax_with_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_with_02(self): """ WITH foo := Bar.foo, baz := (SELECT Foo.baz) COMMIT; """
WITH foo := Bar.foo, baz := (SELECT Foo.baz) COMMIT;
test_edgeql_syntax_with_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_with_03(self): """ WITH MODULE welp CREATE DATABASE sample; """
WITH MODULE welp CREATE DATABASE sample;
test_edgeql_syntax_with_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_with_04(self): """ WITH MODULE welp DROP DATABASE sample; """
WITH MODULE welp DROP DATABASE sample;
test_edgeql_syntax_with_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_with_06(self): """ WITH MODULE abstract SELECT Foo; WITH MODULE all SELECT Foo; WITH MODULE all.abstract.bar SELECT Foo; % OK % WITH MODULE abstract SELECT Foo; WITH MODULE all SELECT Foo; WITH MODULE `all.abstract.bar` SELECT Foo; """
WITH MODULE abstract SELECT Foo; WITH MODULE all SELECT Foo; WITH MODULE all.abstract.bar SELECT Foo; % OK % WITH MODULE abstract SELECT Foo; WITH MODULE all SELECT Foo; WITH MODULE `all.abstract.bar` SELECT Foo;
test_edgeql_syntax_with_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_with_07(self): """ WITH MODULE `all.abstract.bar` SELECT Foo; """
WITH MODULE `all.abstract.bar` SELECT Foo;
test_edgeql_syntax_with_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_with_08(self): """ WITH MODULE `~all.abstract.bar` SELECT Foo; """
WITH MODULE `~all.abstract.bar` SELECT Foo;
test_edgeql_syntax_with_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_with_09(self): # trailing commas in WITH block """ WITH MODULE foo, SELECT Bar; WITH MODULE foo, x := {1, 2, 3}, SELECT Bar; WITH x := {1, 2, 3}, MODULE foo, SELECT Bar; % OK % WITH MODULE foo SELECT Bar; WITH MODULE foo, x := {1, 2, 3} SELECT Bar; WITH x := {1, 2, 3}, MODULE foo SELECT Bar; """
WITH MODULE foo, SELECT Bar; WITH MODULE foo, x := {1, 2, 3}, SELECT Bar; WITH x := {1, 2, 3}, MODULE foo, SELECT Bar; % OK % WITH MODULE foo SELECT Bar; WITH MODULE foo, x := {1, 2, 3} SELECT Bar; WITH x := {1, 2, 3}, MODULE foo SELECT Bar;
test_edgeql_syntax_with_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_with_10(self): """ WITH MODULE __std__ SELECT Foo; """
WITH MODULE __std__ SELECT Foo;
test_edgeql_syntax_with_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_with_11(self): """ WITH a AS MODULE __std__ SELECT Foo; """
WITH a AS MODULE __std__ SELECT Foo;
test_edgeql_syntax_with_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_with_12(self): """ WITH a AS MODULE `__std__` SELECT Foo; """
WITH a AS MODULE `__std__` SELECT Foo;
test_edgeql_syntax_with_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_detached_01(self): """ WITH F := DETACHED Foo SELECT F; """
WITH F := DETACHED Foo SELECT F;
test_edgeql_syntax_detached_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_detached_02(self): """ WITH F := DETACHED (SELECT Foo FILTER Bar) SELECT F; """
WITH F := DETACHED (SELECT Foo FILTER Bar) SELECT F;
test_edgeql_syntax_detached_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_detached_03(self): """ SELECT (DETACHED Foo, Foo); """
SELECT (DETACHED Foo, Foo);
test_edgeql_syntax_detached_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_detached_04(self): """ SELECT DETACHED Foo.bar; % OK % SELECT (DETACHED Foo).bar; """
SELECT DETACHED Foo.bar; % OK % SELECT (DETACHED Foo).bar;
test_edgeql_syntax_detached_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_detached_05(self): """ SELECT DETACHED mod::Foo.bar; % OK % SELECT (DETACHED mod::Foo).bar; """
SELECT DETACHED mod::Foo.bar; % OK % SELECT (DETACHED mod::Foo).bar;
test_edgeql_syntax_detached_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_select_01(self): """ SELECT 42; SELECT User{name}; SELECT User{name} FILTER (User.age > 42); SELECT User{name} ORDER BY User.name ASC; SELECT User{name} OFFSET 2; SELECT User{name} LIMIT 5; SELECT User{name} OFFSET 2 LIMIT 5; """
SELECT 42; SELECT User{name}; SELECT User{name} FILTER (User.age > 42); SELECT User{name} ORDER BY User.name ASC; SELECT User{name} OFFSET 2; SELECT User{name} LIMIT 5; SELECT User{name} OFFSET 2 LIMIT 5;
test_edgeql_syntax_select_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_select_02(self): """ SELECT User{name} ORDER BY User.name; SELECT User{name} ORDER BY User.name ASC; SELECT User{name} ORDER BY User.name DESC; % OK % SELECT User{name} ORDER BY User.name ASC; SELECT User{name} ORDER BY User.name ASC; SELECT User{name} ORDER BY User.name DESC; """
SELECT User{name} ORDER BY User.name; SELECT User{name} ORDER BY User.name ASC; SELECT User{name} ORDER BY User.name DESC; % OK % SELECT User{name} ORDER BY User.name ASC; SELECT User{name} ORDER BY User.name ASC; SELECT User{name} ORDER BY User.name DESC;
test_edgeql_syntax_select_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_select_03(self): """ SELECT User{name, age} ORDER BY User.name THEN User.age; SELECT User{name, age} ORDER BY User.name THEN User.age DESC; SELECT User{name, age} ORDER BY User.name ASC THEN User.age DESC; SELECT User{name, age} ORDER BY User.name DESC THEN User.age ASC; % OK % SELECT User{name, age} ORDER BY User.name ASC THEN User.age ASC; SELECT User{name, age} ORDER BY User.name ASC THEN User.age DESC; SELECT User{name, age} ORDER BY User.name ASC THEN User.age DESC; SELECT User{name, age} ORDER BY User.name DESC THEN User.age ASC; """
SELECT User{name, age} ORDER BY User.name THEN User.age; SELECT User{name, age} ORDER BY User.name THEN User.age DESC; SELECT User{name, age} ORDER BY User.name ASC THEN User.age DESC; SELECT User{name, age} ORDER BY User.name DESC THEN User.age ASC; % OK % SELECT User{name, age} ORDER BY User.name ASC THEN User.age ASC; SELECT User{name, age} ORDER BY User.name ASC THEN User.age DESC; SELECT User{name, age} ORDER BY User.name ASC THEN User.age DESC; SELECT User{name, age} ORDER BY User.name DESC THEN User.age ASC;
test_edgeql_syntax_select_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_select_04(self): """ SELECT User.name FILTER (User.age > 42) ORDER BY User.name ASC OFFSET 2 LIMIT 5; """
SELECT User.name FILTER (User.age > 42) ORDER BY User.name ASC OFFSET 2 LIMIT 5;
test_edgeql_syntax_select_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_select_05(self): """ SELECT 42; SELECT User{name}; SELECT User{name} FILTER (User.age > 42); SELECT User{name} ORDER BY User.name ASC; SELECT User{name} OFFSET 2; SELECT User{name} LIMIT 5; SELECT User{name} OFFSET 2 LIMIT 5; """
SELECT 42; SELECT User{name}; SELECT User{name} FILTER (User.age > 42); SELECT User{name} ORDER BY User.name ASC; SELECT User{name} OFFSET 2; SELECT User{name} LIMIT 5; SELECT User{name} OFFSET 2 LIMIT 5;
test_edgeql_syntax_select_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_select_06(self): """ SELECT User.name FILTER (User.age > 42) ORDER BY User.name ASC OFFSET 2 LIMIT 5; """
SELECT User.name FILTER (User.age > 42) ORDER BY User.name ASC OFFSET 2 LIMIT 5;
test_edgeql_syntax_select_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_select_07(self): """ (SELECT User.name) OFFSET 2; """
(SELECT User.name) OFFSET 2;
test_edgeql_syntax_select_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_select_08(self): """ SELECT User{name} ORDER BY User.name ASC; SELECT User{name} ORDER BY User.name ASC; SELECT User{name} OFFSET 2; SELECT User{name} LIMIT 2; SELECT User{name} OFFSET 2 LIMIT 5; """
SELECT User{name} ORDER BY User.name ASC; SELECT User{name} ORDER BY User.name ASC; SELECT User{name} OFFSET 2; SELECT User{name} LIMIT 2; SELECT User{name} OFFSET 2 LIMIT 5;
test_edgeql_syntax_select_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_select_09(self): """ SELECT Issue {name} ORDER BY Issue.priority.name ASC EMPTY FIRST; SELECT Issue {name} ORDER BY Issue.priority.name DESC EMPTY LAST; """
SELECT Issue {name} ORDER BY Issue.priority.name ASC EMPTY FIRST; SELECT Issue {name} ORDER BY Issue.priority.name DESC EMPTY LAST;
test_edgeql_syntax_select_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_select_10(self): """ SELECT User.name OFFSET $1; SELECT User.name LIMIT $2; SELECT User.name OFFSET $1 LIMIT $2; """
SELECT User.name OFFSET $1; SELECT User.name LIMIT $2; SELECT User.name OFFSET $1 LIMIT $2;
test_edgeql_syntax_select_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_select_11(self): """ SELECT User.name OFFSET Foo.bar; SELECT User.name LIMIT (Foo.bar * 10); SELECT User.name OFFSET Foo.bar LIMIT (Foo.bar * 10); """
SELECT User.name OFFSET Foo.bar; SELECT User.name LIMIT (Foo.bar * 10); SELECT User.name OFFSET Foo.bar LIMIT (Foo.bar * 10);
test_edgeql_syntax_select_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_select_12(self): """ SELECT ( SELECT Foo bar ); """
SELECT ( SELECT Foo bar );
test_edgeql_syntax_select_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_select_13(self): """ default::Movie.name; """
default::Movie.name;
test_edgeql_syntax_select_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_group_01(self): """ GROUP User BY .name; """
GROUP User BY .name;
test_edgeql_syntax_group_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_group_02(self): """ # define and mask aliases WITH _1 := User GROUP _2 := _1 USING _ := _2.name BY _; """
# define and mask aliases WITH _1 := User GROUP _2 := _1 USING _ := _2.name BY _;
test_edgeql_syntax_group_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_group_03(self): """ GROUP User := User USING G := User.name BY G; """
GROUP User := User USING G := User.name BY G;
test_edgeql_syntax_group_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_group_04(self): """ GROUP F := User.friends BY .name; """
GROUP F := User.friends BY .name;
test_edgeql_syntax_group_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_group_05(self): """ GROUP User USING G1 := User.name, G2 := User.age, G3 := User.rank, G4 := User.status BY G1, G2, G3, G4; """
GROUP User USING G1 := User.name, G2 := User.age, G3 := User.rank, G4 := User.status BY G1, G2, G3, G4;
test_edgeql_syntax_group_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_group_06(self): """ GROUP User BY .name, .age, .rank, .status; GROUP User BY .name, .age, .rank, .status,; % OK % GROUP User BY .name, .age, .rank, .status; GROUP User BY .name, .age, .rank, .status; """
GROUP User BY .name, .age, .rank, .status; GROUP User BY .name, .age, .rank, .status,; % OK % GROUP User BY .name, .age, .rank, .status; GROUP User BY .name, .age, .rank, .status;
test_edgeql_syntax_group_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_group_07(self): """ GROUP User USING letter := (.name)[0], BY letter, .age, .rank, .status; % OK % GROUP User USING letter := (.name)[0] BY letter, .age, .rank, .status; """
GROUP User USING letter := (.name)[0], BY letter, .age, .rank, .status; % OK % GROUP User USING letter := (.name)[0] BY letter, .age, .rank, .status;
test_edgeql_syntax_group_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_group_08(self): """ GROUP User USING letter := (.name)[0] BY {letter, .age, ROLLUP(.rank, .status)}; GROUP User USING letter := (.name)[0] BY {letter, .age, ROLLUP(.rank, .status),}; % OK % GROUP User USING letter := (.name)[0] BY {letter, .age, ROLLUP(.rank, .status)}; GROUP User USING letter := (.name)[0] BY {letter, .age, ROLLUP(.rank, .status)}; """
GROUP User USING letter := (.name)[0] BY {letter, .age, ROLLUP(.rank, .status)}; GROUP User USING letter := (.name)[0] BY {letter, .age, ROLLUP(.rank, .status),}; % OK % GROUP User USING letter := (.name)[0] BY {letter, .age, ROLLUP(.rank, .status)}; GROUP User USING letter := (.name)[0] BY {letter, .age, ROLLUP(.rank, .status)};
test_edgeql_syntax_group_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_group_09(self): """ GROUP User USING letter := (.name)[0] BY CUBE(letter, .age, .rank, .status); GROUP User USING letter := (.name)[0] BY CUBE(letter, .age, .rank, .status,); % OK % GROUP User USING letter := (.name)[0] BY CUBE(letter, .age, .rank, .status); GROUP User USING letter := (.name)[0] BY CUBE(letter, .age, .rank, .status); """
GROUP User USING letter := (.name)[0] BY CUBE(letter, .age, .rank, .status); GROUP User USING letter := (.name)[0] BY CUBE(letter, .age, .rank, .status,); % OK % GROUP User USING letter := (.name)[0] BY CUBE(letter, .age, .rank, .status); GROUP User USING letter := (.name)[0] BY CUBE(letter, .age, .rank, .status);
test_edgeql_syntax_group_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_group_10(self): """ GROUP User USING letter := (.name)[0] BY {letter, {.age, CUBE(.rank, .status)}}; GROUP User USING letter := (.name)[0] BY {letter, {.age, CUBE(.rank, .status,)},}; % OK % GROUP User USING letter := (.name)[0] BY {letter, {.age, CUBE(.rank, .status)}}; GROUP User USING letter := (.name)[0] BY {letter, {.age, CUBE(.rank, .status)}}; """
GROUP User USING letter := (.name)[0] BY {letter, {.age, CUBE(.rank, .status)}}; GROUP User USING letter := (.name)[0] BY {letter, {.age, CUBE(.rank, .status,)},}; % OK % GROUP User USING letter := (.name)[0] BY {letter, {.age, CUBE(.rank, .status)}}; GROUP User USING letter := (.name)[0] BY {letter, {.age, CUBE(.rank, .status)}};
test_edgeql_syntax_group_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_group_11(self): """ GROUP User BY (.name, .age); """
GROUP User BY (.name, .age);
test_edgeql_syntax_group_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_group_12(self): """ GROUP User BY {(.name, .age), (.rank, .status)}; GROUP User BY {(.name, .age), (.rank, .status),}; % OK % GROUP User BY {(.name, .age), (.rank, .status)}; GROUP User BY {(.name, .age), (.rank, .status)}; """
GROUP User BY {(.name, .age), (.rank, .status)}; GROUP User BY {(.name, .age), (.rank, .status),}; % OK % GROUP User BY {(.name, .age), (.rank, .status)}; GROUP User BY {(.name, .age), (.rank, .status)};
test_edgeql_syntax_group_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_group_13(self): """ GROUP User BY ROLLUP((.name, .age), (.rank, .status)); GROUP User BY ROLLUP((.name, .age), (.rank, .status),); % OK % GROUP User BY ROLLUP((.name, .age), (.rank, .status)); GROUP User BY ROLLUP((.name, .age), (.rank, .status)); """
GROUP User BY ROLLUP((.name, .age), (.rank, .status)); GROUP User BY ROLLUP((.name, .age), (.rank, .status),); % OK % GROUP User BY ROLLUP((.name, .age), (.rank, .status)); GROUP User BY ROLLUP((.name, .age), (.rank, .status));
test_edgeql_syntax_group_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_set_01(self): """ SELECT (1 UNION 2); """
SELECT (1 UNION 2);
test_edgeql_syntax_set_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_set_02(self): """ SELECT ((SELECT Foo) UNION (SELECT Bar)); """
SELECT ((SELECT Foo) UNION (SELECT Bar));
test_edgeql_syntax_set_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_set_03(self): """ (SELECT Foo) UNION (SELECT Bar); """
(SELECT Foo) UNION (SELECT Bar);
test_edgeql_syntax_set_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_set_04(self): """ SELECT 2 * (1 UNION 2 UNION 1); % OK % SELECT (2 * ((1 UNION 2) UNION 1)); """
SELECT 2 * (1 UNION 2 UNION 1); % OK % SELECT (2 * ((1 UNION 2) UNION 1));
test_edgeql_syntax_set_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_set_05(self): """ SELECT {}; SELECT {1}; SELECT {1, 2}; SELECT {1, 2, {}, {1, 3}}; SELECT {Foo.bar, Foo.baz}; SELECT {Foo.bar, Foo.baz}.spam; """
SELECT {}; SELECT {1}; SELECT {1, 2}; SELECT {1, 2, {}, {1, 3}}; SELECT {Foo.bar, Foo.baz}; SELECT {Foo.bar, Foo.baz}.spam;
test_edgeql_syntax_set_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_set_06(self): """ SELECT DISTINCT ({1, 2, 2, 3}); """
SELECT DISTINCT ({1, 2, 2, 3});
test_edgeql_syntax_set_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_set_07(self): """ SELECT ((1 UNION 2) UNION 3); """
SELECT ((1 UNION 2) UNION 3);
test_edgeql_syntax_set_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_set_08(self): """ SELECT 1 EXCEPT 2 EXCEPT 3; % OK % SELECT ((1 EXCEPT 2) EXCEPT 3); """
SELECT 1 EXCEPT 2 EXCEPT 3; % OK % SELECT ((1 EXCEPT 2) EXCEPT 3);
test_edgeql_syntax_set_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_set_09(self): """ SELECT 1 EXCEPT 2 UNION 3; % OK % SELECT ((1 EXCEPT 2) UNION 3); """
SELECT 1 EXCEPT 2 UNION 3; % OK % SELECT ((1 EXCEPT 2) UNION 3);
test_edgeql_syntax_set_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_set_10(self): """ SELECT (1 EXCEPT (2 UNION 3)); """
SELECT (1 EXCEPT (2 UNION 3));
test_edgeql_syntax_set_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_set_11(self): """ SELECT 1 INTERSECT 2 INTERSECT 3; % OK % SELECT ((1 INTERSECT 2) INTERSECT 3); """
SELECT 1 INTERSECT 2 INTERSECT 3; % OK % SELECT ((1 INTERSECT 2) INTERSECT 3);
test_edgeql_syntax_set_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_set_12(self): """ SELECT 1 UNION 2 INTERSECT 3; % OK % SELECT (1 UNION (2 INTERSECT 3)); """
SELECT 1 UNION 2 INTERSECT 3; % OK % SELECT (1 UNION (2 INTERSECT 3));
test_edgeql_syntax_set_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_set_13(self): """ SELECT 1 INTERSECT 2 EXCEPT 3 INTERSECT 4 UNION 5; % OK % SELECT (((1 INTERSECT 2) EXCEPT (3 INTERSECT 4)) UNION 5); """
SELECT 1 INTERSECT 2 EXCEPT 3 INTERSECT 4 UNION 5; % OK % SELECT (((1 INTERSECT 2) EXCEPT (3 INTERSECT 4)) UNION 5);
test_edgeql_syntax_set_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_insert_01(self): """ INSERT Foo; SELECT (INSERT Foo); SELECT (INSERT Foo) {bar}; """
INSERT Foo; SELECT (INSERT Foo); SELECT (INSERT Foo) {bar};
test_edgeql_syntax_insert_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_insert_02(self): """ INSERT Foo{bar := 42}; SELECT (INSERT Foo{bar := 42}); SELECT (INSERT Foo{bar := 42}) {bar}; """
INSERT Foo{bar := 42}; SELECT (INSERT Foo{bar := 42}); SELECT (INSERT Foo{bar := 42}) {bar};
test_edgeql_syntax_insert_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_insert_03(self): """ INSERT Foo; """
INSERT Foo;
test_edgeql_syntax_insert_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_insert_04(self): """ INSERT Foo{bar := 42}; """
INSERT Foo{bar := 42};
test_edgeql_syntax_insert_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_insert_05(self): """ INSERT 42; """
INSERT 42;
test_edgeql_syntax_insert_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_insert_06(self): """ INSERT Foo FILTER Foo.bar = 42; """
INSERT Foo FILTER Foo.bar = 42;
test_edgeql_syntax_insert_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_insert_07(self): """ INSERT Foo GROUP BY Foo.bar; """
INSERT Foo GROUP BY Foo.bar;
test_edgeql_syntax_insert_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_insert_08(self): """ INSERT Foo ORDER BY Foo.bar; """
INSERT Foo ORDER BY Foo.bar;
test_edgeql_syntax_insert_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_insert_09(self): """ INSERT Foo OFFSET 2; """
INSERT Foo OFFSET 2;
test_edgeql_syntax_insert_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_insert_10(self): """ INSERT Foo LIMIT 5; """
INSERT Foo LIMIT 5;
test_edgeql_syntax_insert_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_insert_13(self): """ INSERT Foo{ bar := 42, baz := (SELECT Baz FILTER (Baz.spam = 'ham')) }; """
INSERT Foo{ bar := 42, baz := (SELECT Baz FILTER (Baz.spam = 'ham')) };
test_edgeql_syntax_insert_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_insert_15(self): """ INSERT Foo{ bar := 42, baz := 'spam' { @weight := 2, } }; INSERT Foo{ bar := 42, baz := 24 { @weight := 2, } }; """
INSERT Foo{ bar := 42, baz := 'spam' { @weight := 2, } }; INSERT Foo{ bar := 42, baz := 24 { @weight := 2, } };
test_edgeql_syntax_insert_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_insert_16(self): """ INSERT Foo{ bar := 42, baz: 'spam' { @weight := 2, } }; """
INSERT Foo{ bar := 42, baz: 'spam' { @weight := 2, } };
test_edgeql_syntax_insert_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_insert_17(self): """ INSERT Foo{ bar := 42, baz := ( SELECT Baz{ @weight := 2 } FILTER (Baz.spam = 'ham') ) }; """
INSERT Foo{ bar := 42, baz := ( SELECT Baz{ @weight := 2 } FILTER (Baz.spam = 'ham') ) };
test_edgeql_syntax_insert_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_insert_18(self): """ INSERT Foo { bar := 42, } UNLESS CONFLICT; """
INSERT Foo { bar := 42, } UNLESS CONFLICT;
test_edgeql_syntax_insert_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_insert_19(self): """ INSERT Foo { bar := 42, } UNLESS CONFLICT ON .bar; """
INSERT Foo { bar := 42, } UNLESS CONFLICT ON .bar;
test_edgeql_syntax_insert_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_insert_20(self): """ INSERT Foo { bar := 42, } UNLESS CONFLICT ON .bar ELSE (SELECT Foo); """
INSERT Foo { bar := 42, } UNLESS CONFLICT ON .bar ELSE (SELECT Foo);
test_edgeql_syntax_insert_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_insert_21(self): """ INSERT Foo { bar := 42, } UNLESS CONFLICT ELSE (SELECT Foo); """
INSERT Foo { bar := 42, } UNLESS CONFLICT ELSE (SELECT Foo);
test_edgeql_syntax_insert_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_insert_22(self): """ SELECT ( INSERT Foo bar ); """
SELECT ( INSERT Foo bar );
test_edgeql_syntax_insert_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_syntex_insert_23(self): """ INSERT { oops := "uhoh" }; """
INSERT { oops := "uhoh" };
test_edgeql_syntex_insert_23
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0