code
stringlengths
26
870k
docstring
stringlengths
1
65.6k
func_name
stringlengths
1
194
language
stringclasses
1 value
repo
stringlengths
8
68
path
stringlengths
5
194
url
stringlengths
46
254
license
stringclasses
4 values
def test_edgeql_syntax_ddl_branch_03(self): """ CREATE EMPTY BRANCH foo::mytestdb; """
CREATE EMPTY BRANCH foo::mytestdb;
test_edgeql_syntax_ddl_branch_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_branch_04(self): """ CREATE EMPTY BRANCH if; CREATE EMPTY BRANCH abstract; % OK % CREATE EMPTY BRANCH `if`; CREATE EMPTY BRANCH abstract; """
CREATE EMPTY BRANCH if; CREATE EMPTY BRANCH abstract; % OK % CREATE EMPTY BRANCH `if`; CREATE EMPTY BRANCH abstract;
test_edgeql_syntax_ddl_branch_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_branch_05(self): """ DROP BRANCH if; DROP BRANCH abstract; % OK % DROP BRANCH `if`; DROP BRANCH abstract; """
DROP BRANCH if; DROP BRANCH abstract; % OK % DROP BRANCH `if`; DROP BRANCH abstract;
test_edgeql_syntax_ddl_branch_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_06(self): """ CREATE SCHEMA BRANCH foo FROM bar; CREATE DATA BRANCH foo FROM bar; """
CREATE SCHEMA BRANCH foo FROM bar; CREATE DATA BRANCH foo FROM bar;
test_edgeql_syntax_ddl_branch_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_branch_07(self): """ CREATE BRANCH hello; """
CREATE BRANCH hello;
test_edgeql_syntax_ddl_branch_07
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_role_01(self): """ CREATE ROLE username; CREATE SUPERUSER ROLE username; CREATE ROLE abstract; CREATE ROLE `mytest"role"`; CREATE ROLE `mytest"role"` EXTENDING delegated, `mytest"baserole"`; % OK % CREATE ROLE username; CREATE SUPERUSER ROLE username; CREATE ROLE abstract; CREATE ROLE `mytest"role"`; CREATE ROLE `mytest"role"` EXTENDING delegated, `mytest"baserole"`; """
CREATE ROLE username; CREATE SUPERUSER ROLE username; CREATE ROLE abstract; CREATE ROLE `mytest"role"`; CREATE ROLE `mytest"role"` EXTENDING delegated, `mytest"baserole"`; % OK % CREATE ROLE username; CREATE SUPERUSER ROLE username; CREATE ROLE abstract; CREATE ROLE `mytest"role"`; CREATE ROLE `mytest"role"` EXTENDING delegated, `mytest"baserole"`;
test_edgeql_syntax_ddl_role_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_role_02(self): """ CREATE ROLE if; """
CREATE ROLE if;
test_edgeql_syntax_ddl_role_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_role_03(self): """ CREATE ROLE foo::bar; """
CREATE ROLE foo::bar;
test_edgeql_syntax_ddl_role_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_role_04(self): """ DROP ROLE username; """
DROP ROLE username;
test_edgeql_syntax_ddl_role_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_role_05(self): """ CREATE ROLE username EXTENDING generic { SET password := 'secret'; }; """
CREATE ROLE username EXTENDING generic { SET password := 'secret'; };
test_edgeql_syntax_ddl_role_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_role_06(self): """ ALTER ROLE username { SET password := {}; EXTENDING generic, morestuff; }; """
ALTER ROLE username { SET password := {}; EXTENDING generic, morestuff; };
test_edgeql_syntax_ddl_role_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_role_07(self): """ ALTER ROLE username { RESET password; EXTENDING generic, morestuff; }; """
ALTER ROLE username { RESET password; EXTENDING generic, morestuff; };
test_edgeql_syntax_ddl_role_07
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_role_08(self): """ CREATE ROLE username IF NOT EXISTS; CREATE SUPERUSER ROLE username IF NOT EXISTS; CREATE ROLE username EXTENDING generic IF NOT EXISTS; CREATE ROLE username EXTENDING generic IF NOT EXISTS { SET password := 'secret'; }; """
CREATE ROLE username IF NOT EXISTS; CREATE SUPERUSER ROLE username IF NOT EXISTS; CREATE ROLE username EXTENDING generic IF NOT EXISTS; CREATE ROLE username EXTENDING generic IF NOT EXISTS { SET password := 'secret'; };
test_edgeql_syntax_ddl_role_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_ddl_delta_02(self): """ START MIGRATION TO {type default::Foo;}; ALTER MIGRATION m1231231231fd SET message := 'foo'; COMMIT MIGRATION; """
START MIGRATION TO {type default::Foo;}; ALTER MIGRATION m1231231231fd SET message := 'foo'; COMMIT MIGRATION;
test_edgeql_syntax_ddl_delta_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_delta_03(self): """ START MIGRATION TO { module test { type Foo; }; }; """
START MIGRATION TO { module test { type Foo; }; };
test_edgeql_syntax_ddl_delta_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_delta_04(self): """ START MIGRATION TO BadLang $$type Foo$$; """
START MIGRATION TO BadLang $$type Foo$$;
test_edgeql_syntax_ddl_delta_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_delta_05(self): """ START MIGRATION TO { type test::Foo { property bar -> str } }; % OK % START MIGRATION TO { type test::Foo { property bar: str; }; }; """
START MIGRATION TO { type test::Foo { property bar -> str } }; % OK % START MIGRATION TO { type test::Foo { property bar: str; }; };
test_edgeql_syntax_ddl_delta_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_delta_06(self): """ POPULATE MIGRATION; ABORT MIGRATION; COMMIT MIGRATION; DESCRIBE CURRENT MIGRATION AS JSON; ALTER CURRENT MIGRATION REJECT PROPOSED; """
POPULATE MIGRATION; ABORT MIGRATION; COMMIT MIGRATION; DESCRIBE CURRENT MIGRATION AS JSON; ALTER CURRENT MIGRATION REJECT PROPOSED;
test_edgeql_syntax_ddl_delta_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_migration_rewrite_01(self): """ START MIGRATION REWRITE; ABORT MIGRATION REWRITE; COMMIT MIGRATION REWRITE; START MIGRATION TO COMMITTED SCHEMA; """
START MIGRATION REWRITE; ABORT MIGRATION REWRITE; COMMIT MIGRATION REWRITE; START MIGRATION TO COMMITTED SCHEMA;
test_edgeql_syntax_ddl_migration_rewrite_01
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_create_migration_01(self): """ CREATE MIGRATION {}; % OK % CREATE MIGRATION; """
CREATE MIGRATION {}; % OK % CREATE MIGRATION;
test_edgeql_syntax_ddl_create_migration_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_create_migration_02(self): """ CREATE MIGRATION { ;;; CREATE TYPE Foo ;;; CREATE TYPE Bar ;;; }; """
CREATE MIGRATION { ;;; CREATE TYPE Foo ;;; CREATE TYPE Bar ;;; };
test_edgeql_syntax_ddl_create_migration_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_create_migration_03(self): """ CREATE MIGRATION { CREATE TYPE Foo; }; """
CREATE MIGRATION { CREATE TYPE Foo; };
test_edgeql_syntax_ddl_create_migration_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_create_migration_04(self): """ CREATE MIGRATION m123123123 { CREATE TYPE Foo; }; % OK % CREATE MIGRATION m123123123 ONTO initial { CREATE TYPE Foo; }; """
CREATE MIGRATION m123123123 { CREATE TYPE Foo; }; % OK % CREATE MIGRATION m123123123 ONTO initial { CREATE TYPE Foo; };
test_edgeql_syntax_ddl_create_migration_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_create_migration_05(self): """ CREATE MIGRATION m123123123 ONTO m134134134 { CREATE TYPE Foo; }; """
CREATE MIGRATION m123123123 ONTO m134134134 { CREATE TYPE Foo; };
test_edgeql_syntax_ddl_create_migration_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_create_migration_06(self): """ CREATE APPLIED MIGRATION m123123123 ONTO m134134134 { CREATE TYPE Foo; }; """
CREATE APPLIED MIGRATION m123123123 ONTO m134134134 { CREATE TYPE Foo; };
test_edgeql_syntax_ddl_create_migration_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_create_migration_07(self): """ START MIGRATION TO { using extension graphql version '2.0'; }; """
START MIGRATION TO { using extension graphql version '2.0'; };
test_edgeql_syntax_ddl_create_migration_07
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_create_migration_08(self): """ START MIGRATION TO { using extension graphql; }; """
START MIGRATION TO { using extension graphql; };
test_edgeql_syntax_ddl_create_migration_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_ddl_create_migration_09(self): """ START MIGRATION TO { module foo { using extension graphql; } }; """
START MIGRATION TO { module foo { using extension graphql; } };
test_edgeql_syntax_ddl_create_migration_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_ddl_create_migration_10(self): """ CREATE APPLIED MIGRATION m123123123 ONTO m134134134 { WITH MODULE x CREATE TYPE Foo; }; """
CREATE APPLIED MIGRATION m123123123 ONTO m134134134 { WITH MODULE x CREATE TYPE Foo; };
test_edgeql_syntax_ddl_create_migration_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_ddl_create_migration_11(self): """ CREATE MIGRATION m123123123 ONTO m134134134 { SET message := "test migration please ignore"; CREATE TYPE Foo; }; """
CREATE MIGRATION m123123123 ONTO m134134134 { SET message := "test migration please ignore"; CREATE TYPE Foo; };
test_edgeql_syntax_ddl_create_migration_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_ddl_create_extension_package_01(self): """ CREATE EXTENSION PACKAGE foo VERSION '1.0'; """
CREATE EXTENSION PACKAGE foo VERSION '1.0';
test_edgeql_syntax_ddl_create_extension_package_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_create_extension_package_02(self): """ CREATE EXTENSION PACKAGE foo VERSION '1.0' { ;;; CREATE TYPE Foo ;;; CREATE TYPE Bar ;;; }; """
CREATE EXTENSION PACKAGE foo VERSION '1.0' { ;;; CREATE TYPE Foo ;;; CREATE TYPE Bar ;;; };
test_edgeql_syntax_ddl_create_extension_package_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_create_extension_package_03(self): """ CREATE EXTENSION PACKAGE foo VERSION 'aaa'; """
CREATE EXTENSION PACKAGE foo VERSION 'aaa';
test_edgeql_syntax_ddl_create_extension_package_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_create_extension_package_04(self): """ CREATE EXTENSION PACKAGE foo VERSION '1.0' { set ext_module := "ext::foo"; CREATE TYPE Foo; }; """
CREATE EXTENSION PACKAGE foo VERSION '1.0' { set ext_module := "ext::foo"; CREATE TYPE Foo; };
test_edgeql_syntax_ddl_create_extension_package_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_drop_extension_package_01(self): """ DROP EXTENSION PACKAGE foo VERSION '1.0'; """
DROP EXTENSION PACKAGE foo VERSION '1.0';
test_edgeql_syntax_ddl_drop_extension_package_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_create_extension_01(self): """ CREATE EXTENSION foo; """
CREATE EXTENSION foo;
test_edgeql_syntax_ddl_create_extension_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_create_extension_02(self): """ CREATE EXTENSION foo VERSION '1.0'; """
CREATE EXTENSION foo VERSION '1.0';
test_edgeql_syntax_ddl_create_extension_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_drop_extension_01(self): """ DROP EXTENSION foo; """
DROP EXTENSION foo;
test_edgeql_syntax_ddl_drop_extension_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_create_future_01(self): """ CREATE FUTURE foo; """
CREATE FUTURE foo;
test_edgeql_syntax_ddl_create_future_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_drop_future_01(self): """ DROP FUTURE foo; """
DROP FUTURE foo;
test_edgeql_syntax_ddl_drop_future_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_aggregate_00(self): """ CREATE FUNCTION std::sum(v: SET OF std::int64) -> std::int64 USING SQL FUNCTION 'sum'; """
CREATE FUNCTION std::sum(v: SET OF std::int64) -> std::int64 USING SQL FUNCTION 'sum';
test_edgeql_syntax_ddl_aggregate_00
python
geldata/gel
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_aggregate_01(self): """ CREATE FUNCTION std::sum(v: SET OF std::int64) -> std::int64 { SET initial_value := 0; USING SQL FUNCTION 'test'; }; """
CREATE FUNCTION std::sum(v: SET OF std::int64) -> std::int64 { SET initial_value := 0; USING SQL FUNCTION 'test'; };
test_edgeql_syntax_ddl_aggregate_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_aggregate_02(self): """ CREATE FUNCTION std::sum(arg: SET OF std::int64) -> std::int64 { SET initial_value := 0; USING SQL FUNCTION 'sum'; }; """
CREATE FUNCTION std::sum(arg: SET OF std::int64) -> std::int64 { SET initial_value := 0; USING SQL FUNCTION 'sum'; };
test_edgeql_syntax_ddl_aggregate_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_aggregate_03(self): """ CREATE FUNCTION std::sum(integer: SET OF std::int64) -> std::int64 { SET initial_value := 0; USING SQL FUNCTION 'sum'; }; """
CREATE FUNCTION std::sum(integer: SET OF std::int64) -> std::int64 { SET initial_value := 0; USING SQL FUNCTION 'sum'; };
test_edgeql_syntax_ddl_aggregate_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_aggregate_04(self): """ CREATE FUNCTION std::sum(integer: SET OF std::int64) -> std::int64 { SET initial_value := 0; USING SQL FUNCTION 'sum'; }; """
CREATE FUNCTION std::sum(integer: SET OF std::int64) -> std::int64 { SET initial_value := 0; USING SQL FUNCTION 'sum'; };
test_edgeql_syntax_ddl_aggregate_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_aggregate_06(self): """ CREATE FUNCTION foo(string: SET OF std::str) -> std::int64 { SET initial_value := 0; USING AAA FUNCTION 'foo'; }; """
CREATE FUNCTION foo(string: SET OF std::str) -> std::int64 { SET initial_value := 0; USING AAA FUNCTION 'foo'; };
test_edgeql_syntax_ddl_aggregate_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_aggregate_08(self): """ CREATE FUNCTION std::count(expression: SET OF anytype) -> std::int64 { SET initial_value := 0; USING SQL FUNCTION 'count'; }; """
CREATE FUNCTION std::count(expression: SET OF anytype) -> std::int64 { SET initial_value := 0; USING SQL FUNCTION 'count'; };
test_edgeql_syntax_ddl_aggregate_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_ddl_scalar_01(self): """ CREATE ABSTRACT SCALAR TYPE std::foo; CREATE SCALAR TYPE std::typeref; CREATE SCALAR TYPE std::scalarref EXTENDING std::typeref; """
CREATE ABSTRACT SCALAR TYPE std::foo; CREATE SCALAR TYPE std::typeref; CREATE SCALAR TYPE std::scalarref EXTENDING std::typeref;
test_edgeql_syntax_ddl_scalar_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_scalar_02(self): """ CREATE SCALAR TYPE anytype EXTENDING int64; """
CREATE SCALAR TYPE anytype EXTENDING int64;
test_edgeql_syntax_ddl_scalar_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_scalar_03(self): """ CREATE SCALAR TYPE myenum EXTENDING enum<'foo', 'bar'>; """
CREATE SCALAR TYPE myenum EXTENDING enum<'foo', 'bar'>;
test_edgeql_syntax_ddl_scalar_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_scalar_04(self): """ CREATE SCALAR TYPE myenum EXTENDING enum<foo, bar>; """
CREATE SCALAR TYPE myenum EXTENDING enum<foo, bar>;
test_edgeql_syntax_ddl_scalar_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_scalar_05(self): """ CREATE SCALAR TYPE myenum EXTENDING enum<'foo', bar>; """
CREATE SCALAR TYPE myenum EXTENDING enum<'foo', bar>;
test_edgeql_syntax_ddl_scalar_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_scalar_06(self): """ CREATE SCALAR TYPE myenum EXTENDING enum<baz: int64, bar>; """
CREATE SCALAR TYPE myenum EXTENDING enum<baz: int64, bar>;
test_edgeql_syntax_ddl_scalar_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_create_pseudo_type_01(self): """ CREATE PSEUDO TYPE `anytype`; """
CREATE PSEUDO TYPE `anytype`;
test_edgeql_syntax_ddl_create_pseudo_type_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_annotation_01(self): """ CREATE ABSTRACT ANNOTATION std::paramtypes; """
CREATE ABSTRACT ANNOTATION std::paramtypes;
test_edgeql_syntax_ddl_annotation_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_annotation_02(self): """ CREATE ABSTRACT INHERITABLE ANNOTATION std::paramtypes; """
CREATE ABSTRACT INHERITABLE ANNOTATION std::paramtypes;
test_edgeql_syntax_ddl_annotation_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_annotation_03(self): """ DROP ABSTRACT ANNOTATION foo::my_annotation; """
DROP ABSTRACT ANNOTATION foo::my_annotation;
test_edgeql_syntax_ddl_annotation_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_annotation_04(self): """ ALTER ABSTRACT ANNOTATION foo::my_annotation RENAME TO foo::renamed_annotation; """
ALTER ABSTRACT ANNOTATION foo::my_annotation RENAME TO foo::renamed_annotation;
test_edgeql_syntax_ddl_annotation_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_constraint_01(self): """ CREATE ABSTRACT CONSTRAINT std::enum(VARIADIC p: anytype) EXTENDING std::constraint { SET errmessage := '{subject} must be one of: {p}.'; USING (contains($p, __subject__)); }; """
CREATE ABSTRACT CONSTRAINT std::enum(VARIADIC p: anytype) EXTENDING std::constraint { SET errmessage := '{subject} must be one of: {p}.'; USING (contains($p, __subject__)); };
test_edgeql_syntax_ddl_constraint_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_constraint_02(self): """ CREATE ABSTRACT CONSTRAINT std::enum(VARIADIC p: anytype) { SET errmessage := '{subject} must be one of: {$p}.'; USING (contains($p, __subject__)); }; """
CREATE ABSTRACT CONSTRAINT std::enum(VARIADIC p: anytype) { SET errmessage := '{subject} must be one of: {$p}.'; USING (contains($p, __subject__)); };
test_edgeql_syntax_ddl_constraint_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_constraint_03(self): """ CREATE ABSTRACT CONSTRAINT std::enum { SET errmessage := '{subject} must be one of: {param}.'; USING (contains($param, __subject__)); }; """
CREATE ABSTRACT CONSTRAINT std::enum { SET errmessage := '{subject} must be one of: {param}.'; USING (contains($param, __subject__)); };
test_edgeql_syntax_ddl_constraint_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_constraint_04(self): """ CREATE ABSTRACT CONSTRAINT std::enum() { SET errmessage := '{subject} must be one of: {param}.'; USING (contains($param, __subject__)); }; % OK % CREATE ABSTRACT CONSTRAINT std::enum { SET errmessage := '{subject} must be one of: {param}.'; USING (contains($param, __subject__)); }; """
CREATE ABSTRACT CONSTRAINT std::enum() { SET errmessage := '{subject} must be one of: {param}.'; USING (contains($param, __subject__)); }; % OK % CREATE ABSTRACT CONSTRAINT std::enum { SET errmessage := '{subject} must be one of: {param}.'; USING (contains($param, __subject__)); };
test_edgeql_syntax_ddl_constraint_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_constraint_05(self): """ CREATE SCALAR TYPE std::decimal_rounding_t EXTENDING std::str { CREATE CONSTRAINT std::enum('a', 'b'); }; """
CREATE SCALAR TYPE std::decimal_rounding_t EXTENDING std::str { CREATE CONSTRAINT std::enum('a', 'b'); };
test_edgeql_syntax_ddl_constraint_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_constraint_06(self): """ CREATE ABSTRACT CONSTRAINT std::len_constraint ON (len(<std::str>__subject__)) EXTENDING std::constraint { SET errmessage := 'invalid {subject}'; }; """
CREATE ABSTRACT CONSTRAINT std::len_constraint ON (len(<std::str>__subject__)) EXTENDING std::constraint { SET errmessage := 'invalid {subject}'; };
test_edgeql_syntax_ddl_constraint_06
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_constraint_07(self): """ CREATE SCALAR TYPE std::decimal_rounding_t EXTENDING std::str { CREATE CONSTRAINT max_value(99) ON (<int64>__subject__); }; """
CREATE SCALAR TYPE std::decimal_rounding_t EXTENDING std::str { CREATE CONSTRAINT max_value(99) ON (<int64>__subject__); };
test_edgeql_syntax_ddl_constraint_07
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_constraint_08(self): """ CREATE ABSTRACT CONSTRAINT len_fail(f: std::str) { USING (__subject__ <= f); SET subjectexpr := len(__subject__); }; % OK % CREATE ABSTRACT CONSTRAINT len_fail(f: std::str) { USING ((__subject__ <= f)); SET subjectexpr := (len(__subject__)); }; """
CREATE ABSTRACT CONSTRAINT len_fail(f: std::str) { USING (__subject__ <= f); SET subjectexpr := len(__subject__); }; % OK % CREATE ABSTRACT CONSTRAINT len_fail(f: std::str) { USING ((__subject__ <= f)); SET subjectexpr := (len(__subject__)); };
test_edgeql_syntax_ddl_constraint_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_ddl_constraint_09(self): """ CREATE TYPE Foo { CREATE LINK bar -> Bar { CREATE CONSTRAINT my_constraint ON ( # It's possible to use shapes in the "ON" expression. # This would be ambiguous without parentheses. __source__{ baz := __source__.a + __source__.b }.baz ) { CREATE ANNOTATION title := 'special'; }; }; }; % OK % CREATE TYPE Foo { CREATE LINK bar: Bar { CREATE CONSTRAINT my_constraint ON ( (__source__{ baz := (__source__.a + __source__.b) }).baz ) { CREATE ANNOTATION title := 'special'; }; }; }; """
CREATE TYPE Foo { CREATE LINK bar -> Bar { CREATE CONSTRAINT my_constraint ON ( # It's possible to use shapes in the "ON" expression. # This would be ambiguous without parentheses. __source__{ baz := __source__.a + __source__.b }.baz ) { CREATE ANNOTATION title := 'special'; }; }; }; % OK % CREATE TYPE Foo { CREATE LINK bar: Bar { CREATE CONSTRAINT my_constraint ON ( (__source__{ baz := (__source__.a + __source__.b) }).baz ) { CREATE ANNOTATION title := 'special'; }; }; };
test_edgeql_syntax_ddl_constraint_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_ddl_constraint_10(self): """ ALTER TYPE Foo { ALTER LINK bar { ALTER CONSTRAINT my_constraint ON (foo) { CREATE ANNOTATION title := 'special'; RESET errmessage; }; }; ALTER LINK baz { DROP CONSTRAINT my_length(10); }; }; """
ALTER TYPE Foo { ALTER LINK bar { ALTER CONSTRAINT my_constraint ON (foo) { CREATE ANNOTATION title := 'special'; RESET errmessage; }; }; ALTER LINK baz { DROP CONSTRAINT my_length(10); }; };
test_edgeql_syntax_ddl_constraint_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_ddl_constraint_11(self): """ ALTER TYPE Foo { ALTER LINK bar { ALTER CONSTRAINT my_constraint ON (foo) { RENAME TO myconstraint; }; }; }; """
ALTER TYPE Foo { ALTER LINK bar { ALTER CONSTRAINT my_constraint ON (foo) { RENAME TO myconstraint; }; }; };
test_edgeql_syntax_ddl_constraint_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_ddl_constraint_12(self): """ ALTER ABSTRACT CONSTRAINT my_constraint RESET errmessage; """
ALTER ABSTRACT CONSTRAINT my_constraint RESET errmessage;
test_edgeql_syntax_ddl_constraint_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_ddl_constraint_13(self): """ ALTER ABSTRACT CONSTRAINT not_bad USING (((__subject__ != 'bad') and (__subject__ != 'terrible'))); """
ALTER ABSTRACT CONSTRAINT not_bad USING (((__subject__ != 'bad') and (__subject__ != 'terrible')));
test_edgeql_syntax_ddl_constraint_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_ddl_constraint_14(self): """ ALTER TYPE Foo { CREATE CONSTRAINT exclusive ON (.name) EXCEPT (.reject); }; """
ALTER TYPE Foo { CREATE CONSTRAINT exclusive ON (.name) EXCEPT (.reject); };
test_edgeql_syntax_ddl_constraint_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_ddl_constraint_15(self): """ ALTER TYPE Foo { DROP CONSTRAINT exclusive ON (.name) EXCEPT (.reject); }; """
ALTER TYPE Foo { DROP CONSTRAINT exclusive ON (.name) EXCEPT (.reject); };
test_edgeql_syntax_ddl_constraint_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_ddl_function_01(self): """ CREATE FUNCTION std::strlen(string: std::str) -> std::int64 USING SQL FUNCTION 'strlen'; """
CREATE FUNCTION std::strlen(string: std::str) -> std::int64 USING SQL FUNCTION 'strlen';
test_edgeql_syntax_ddl_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_ddl_function_02(self): """ CREATE FUNCTION std::strlen(a: std::str) -> std::int64 USING SQL FUNCTION 'strlen'; """
CREATE FUNCTION std::strlen(a: std::str) -> std::int64 USING SQL FUNCTION 'strlen';
test_edgeql_syntax_ddl_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_ddl_function_03(self): """ CREATE FUNCTION std::strlen(string: std::str) -> std::int64 USING SQL FUNCTION 'strlen'; """
CREATE FUNCTION std::strlen(string: std::str) -> std::int64 USING SQL FUNCTION 'strlen';
test_edgeql_syntax_ddl_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_ddl_function_04(self): """ CREATE FUNCTION std::strlen(string: std::str, integer: std::int64) -> std::int64 USING SQL FUNCTION 'strlen'; """
CREATE FUNCTION std::strlen(string: std::str, integer: std::int64) -> std::int64 USING SQL FUNCTION 'strlen';
test_edgeql_syntax_ddl_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_ddl_function_05(self): """ CREATE FUNCTION std::strlen(string: std::str, a: std::int64) -> std::int64 USING SQL FUNCTION 'strlen'; """
CREATE FUNCTION std::strlen(string: std::str, a: std::int64) -> std::int64 USING SQL FUNCTION 'strlen';
test_edgeql_syntax_ddl_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_ddl_function_06(self): """ CREATE FUNCTION std::strlen(string: std::str = '1') -> std::int64 USING SQL FUNCTION 'strlen'; """
CREATE FUNCTION std::strlen(string: std::str = '1') -> std::int64 USING SQL FUNCTION 'strlen';
test_edgeql_syntax_ddl_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_ddl_function_07(self): """ CREATE FUNCTION std::strlen(string: std::str = '1', abc: std::str) -> std::int64 {}; """
CREATE FUNCTION std::strlen(string: std::str = '1', abc: std::str) -> std::int64 {};
test_edgeql_syntax_ddl_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_ddl_function_08(self): """ CREATE FUNCTION std::strlen(VARIADIC string: std::str, abc: std::str) -> std::int64 {}; """
CREATE FUNCTION std::strlen(VARIADIC string: std::str, abc: std::str) -> std::int64 {};
test_edgeql_syntax_ddl_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_ddl_function_09(self): """ CREATE FUNCTION std::strlen(VARIADIC string: std::str, VARIADIC abc: std::str) -> std::int64 {}; """
CREATE FUNCTION std::strlen(VARIADIC string: std::str, VARIADIC abc: std::str) -> std::int64 {};
test_edgeql_syntax_ddl_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_ddl_function_10(self): """ CREATE FUNCTION std::strlen(a: std::str = '1', VARIADIC b: std::str) -> std::int64 USING SQL FUNCTION 'strlen'; """
CREATE FUNCTION std::strlen(a: std::str = '1', VARIADIC b: std::str) -> std::int64 USING SQL FUNCTION 'strlen';
test_edgeql_syntax_ddl_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_ddl_function_11(self): """ CREATE FUNCTION no_params() -> std::int64 USING ( SELECT 1 ); """
CREATE FUNCTION no_params() -> std::int64 USING ( SELECT 1 );
test_edgeql_syntax_ddl_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_ddl_function_13(self): """ CREATE FUNCTION foo(string: std::str) -> tuple<bar: std::int64> USING (SELECT (bar := 123)); """
CREATE FUNCTION foo(string: std::str) -> tuple<bar: std::int64> USING (SELECT (bar := 123));
test_edgeql_syntax_ddl_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_ddl_function_14(self): """ CREATE FUNCTION foo(string: std::str) -> tuple< bar: std::int64, baz: std::str > USING (SELECT smth()); """
CREATE FUNCTION foo(string: std::str) -> tuple< bar: std::int64, baz: std::str > USING (SELECT smth());
test_edgeql_syntax_ddl_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_ddl_function_16(self): """ CREATE FUNCTION foo(string: std::str) -> std::int64 USING AAA FUNCTION 'foo'; """
CREATE FUNCTION foo(string: std::str) -> std::int64 USING AAA FUNCTION 'foo';
test_edgeql_syntax_ddl_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_ddl_function_19(self): """ CREATE FUNCTION foo(string: std::str) -> std::int64 USING AAA 'code'; """
CREATE FUNCTION foo(string: std::str) -> std::int64 USING AAA 'code';
test_edgeql_syntax_ddl_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_ddl_function_20(self): """ CREATE FUNCTION foo() -> std::int64 USING SQL 'SELECT 1'; % OK % CREATE FUNCTION foo() -> std::int64 USING SQL $$SELECT 1$$; """
CREATE FUNCTION foo() -> std::int64 USING SQL 'SELECT 1'; % OK % CREATE FUNCTION foo() -> std::int64 USING SQL $$SELECT 1$$;
test_edgeql_syntax_ddl_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_ddl_function_21(self): """ CREATE FUNCTION foo() -> std::int64 USING SQL FUNCTION 'aaa'; """
CREATE FUNCTION foo() -> std::int64 USING SQL FUNCTION 'aaa';
test_edgeql_syntax_ddl_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_ddl_function_24(self): """ CREATE FUNCTION foo() -> std::str USING SQL $a$SELECT $$foo$$$a$; """
CREATE FUNCTION foo() -> std::str USING SQL $a$SELECT $$foo$$$a$;
test_edgeql_syntax_ddl_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_ddl_function_25(self): """ CREATE FUNCTION foo() -> std::str { CREATE ANNOTATION description := 'aaaa'; USING SQL $a$SELECT $$foo$$$a$; }; """
CREATE FUNCTION foo() -> std::str { CREATE ANNOTATION description := 'aaaa'; USING SQL $a$SELECT $$foo$$$a$; };
test_edgeql_syntax_ddl_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_ddl_function_26(self): """ CREATE FUNCTION foo() -> std::str { SET volatility := 'Volatile'; CREATE ANNOTATION description := 'aaaa'; USING SQL $a$SELECT $$foo$$$a$; }; """
CREATE FUNCTION foo() -> std::str { SET volatility := 'Volatile'; CREATE ANNOTATION description := 'aaaa'; USING SQL $a$SELECT $$foo$$$a$; };
test_edgeql_syntax_ddl_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_ddl_function_27(self): """ CREATE FUNCTION foo() -> std::str { CREATE ANNOTATION description := 'aaaa'; }; """
CREATE FUNCTION foo() -> std::str { CREATE ANNOTATION description := 'aaaa'; };
test_edgeql_syntax_ddl_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_ddl_function_28(self): """ CREATE FUNCTION foo() -> std::str { USING SQL 'SELECT 1'; CREATE ANNOTATION description := 'aaaa'; USING SQL 'SELECT 2'; }; """
CREATE FUNCTION foo() -> std::str { USING SQL 'SELECT 1'; CREATE ANNOTATION description := 'aaaa'; USING SQL 'SELECT 2'; };
test_edgeql_syntax_ddl_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_ddl_function_30(self): """ CREATE FUNCTION std::foobar(arg1: str, arg2: str = 'DEFAULT', VARIADIC arg3) -> std::int64 USING EdgeQL $$$$; """
CREATE FUNCTION std::foobar(arg1: str, arg2: str = 'DEFAULT', VARIADIC arg3) -> std::int64 USING EdgeQL $$$$;
test_edgeql_syntax_ddl_function_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_ddl_function_31(self): # parameter name is missing """ CREATE FUNCTION std::foo(VARIADIC SET OF std::str) -> std::int64; """
CREATE FUNCTION std::foo(VARIADIC SET OF std::str) -> std::int64;
test_edgeql_syntax_ddl_function_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_ddl_function_32(self): """ CREATE FUNCTION std::foo(std::str) -> std::int64; """
CREATE FUNCTION std::foo(std::str) -> std::int64;
test_edgeql_syntax_ddl_function_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_ddl_function_33(self): """ CREATE FUNCTION std::foo(bar: VARIADIC SET OF std::str) -> std::int64; """
CREATE FUNCTION std::foo(bar: VARIADIC SET OF std::str) -> std::int64;
test_edgeql_syntax_ddl_function_33
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0
def test_edgeql_syntax_ddl_function_34(self): """ CREATE FUNCTION foo(a: OPTIONAL std::str) -> std::int64 USING SQL FUNCTION 'aaa'; """
CREATE FUNCTION foo(a: OPTIONAL std::str) -> std::int64 USING SQL FUNCTION 'aaa';
test_edgeql_syntax_ddl_function_34
python
geldata/gel
tests/test_edgeql_syntax.py
https://github.com/geldata/gel/blob/master/tests/test_edgeql_syntax.py
Apache-2.0