Module Expr Str ImportFrom alias ImportFrom alias alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Dict Str ListLoad Dict Str Dict Str Str Dict Str Dict Str Str Dict Str Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Dict Str ListLoad Dict Str Dict Str Str Dict Str Dict Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Dict Str ListLoad Dict Str Dict Str Str Dict Str Dict Str Str Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad Assert CompareEq NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Dict Str Str Str ListLoad Dict Str Dict Str Str Dict Str Dict Str Str Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Assert CompareEq NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Dict Str ListLoad Dict Str Dict Str Str Dict Str Dict Str Str Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Str Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Dict Str ListLoad Dict Str Dict Str Str Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Dict Str Dict Str ListLoad Dict Str Dict Str Str Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Dict Str ListLoad Dict Str Dict Str Str Dict Str Dict Str Str Str Str Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Num Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Dict Str ListLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Dict Str ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad Assert CompareEq NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Dict Str Str Str ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Assert CompareEq NameLoad ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Dict Str Str Str Str Str Str Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Dict Str Str Str Str Str Str Str Str Str Str Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Str NameLoad Str Str Dict Str Str Str Str Str Str Str NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assert CompareEq NameLoad ListLoad Str decorator_list decorator_list
N/A N/A Test enums and other types pyrseas.testutils DatabaseToMapTestCase pyrseas.testutils InputMapToSqlTestCase fix_indent N/A CREATE_COMPOSITE_STMT CREATE TYPE t1 AS (x integer, y integer, z integer) N/A CREATE_ENUM_STMT CREATE TYPE t1 AS ENUM ('red', 'green', 'blue') N/A CREATE_SHELL_STMT CREATE TYPE t1 N/A CREATE_FUNC_IN CREATE FUNCTION t1textin(cstring) RETURNS t1 LANGUAGE internal IMMUTABLE STRICT AS $$textin$$ N/A CREATE_FUNC_OUT CREATE FUNCTION t1textout(t1) RETURNS cstring LANGUAGE internal IMMUTABLE STRICT AS $$textout$$ N/A CREATE_TYPE_STMT CREATE TYPE t1 (INPUT = t1textin, OUTPUT = t1textout) N/A DROP_STMT DROP TYPE IF EXISTS t1 CASCADE N/A COMMENT_STMT COMMENT ON TYPE t1 IS 'Test type t1' CompositeToMapTestCase N/A DatabaseToMapTestCase N/A N/A Test mapping of created composite types test_composite N/A N/A self N/A N/A N/A Map a composite type N/A dbmap N/A N/A self to_map N/A CREATE_COMPOSITE_STMT N/A N/A N/A N/A dbmap N/A schema public N/A type t1 N/A attributes N/A N/A x N/A type integer N/A y N/A type integer N/A z N/A type integer N/A test_dropped_attribute N/A N/A self N/A N/A N/A Map a composite type which has a dropped attribute N/A N/A N/A N/A self db version 90100 N/A N/A N/A N/A self skipTest Only available on PG 9.1 N/A stmts N/A CREATE_COMPOSITE_STMT ALTER TYPE t1 DROP ATTRIBUTE y N/A dbmap N/A N/A self to_map stmts N/A N/A N/A N/A dbmap N/A schema public N/A type t1 N/A attributes N/A N/A x N/A type integer N/A z N/A type integer N/A N/A CompositeToSqlTestCase N/A InputMapToSqlTestCase N/A N/A Test creation and modification of composite types test_create_composite N/A N/A self N/A N/A N/A Create a composite type N/A inmap N/A N/A self std_map N/A N/A N/A N/A inmap N/A schema public update N/A type t1 N/A attributes N/A N/A x N/A type integer N/A y N/A type integer N/A z N/A type integer N/A sql N/A N/A self to_sql inmap N/A N/A N/A fix_indent N/A sql N/A 0 CREATE_COMPOSITE_STMT N/A test_drop_composite N/A N/A self N/A N/A N/A Drop an existing composite N/A sql N/A N/A self to_sql N/A N/A self std_map N/A CREATE_COMPOSITE_STMT N/A N/A sql N/A DROP TYPE t1 N/A test_rename_composite N/A N/A self N/A N/A N/A Rename an existing composite N/A inmap N/A N/A self std_map N/A N/A N/A N/A inmap N/A schema public update N/A type t2 N/A oldname attributes t1 N/A N/A x N/A type integer N/A y N/A type integer N/A z N/A type integer N/A sql N/A N/A self to_sql inmap N/A CREATE_COMPOSITE_STMT N/A N/A sql N/A ALTER TYPE t1 RENAME TO t2 N/A test_add_attribute N/A N/A self N/A N/A N/A Add an attribute to a composite type N/A N/A N/A N/A self db version 90100 N/A N/A N/A N/A self skipTest Only available on PG 9.1 N/A inmap N/A N/A self std_map N/A N/A N/A N/A inmap N/A schema public update N/A type t1 N/A attributes N/A N/A x N/A type integer N/A y N/A type integer N/A z N/A type integer N/A sql N/A N/A self to_sql inmap N/A CREATE TYPE t1 AS (x integer, y integer) N/A N/A N/A fix_indent N/A sql N/A 0 ALTER TYPE t1 ADD ATTRIBUTE z integer N/A test_drop_attribute N/A N/A self N/A N/A N/A Drop an attribute from a composite type N/A N/A N/A N/A self db version 90100 N/A N/A N/A N/A self skipTest Only available on PG 9.1 N/A inmap N/A N/A self std_map N/A N/A N/A N/A inmap N/A schema public update N/A type t1 N/A attributes N/A N/A x N/A type integer N/A z N/A type integer N/A sql N/A N/A self to_sql inmap N/A CREATE_COMPOSITE_STMT N/A N/A N/A fix_indent N/A sql N/A 0 ALTER TYPE t1 DROP ATTRIBUTE y N/A test_drop_attribute_schema N/A N/A self N/A N/A N/A Drop an attribute from a composite type within a non-public schema N/A N/A N/A N/A self db version 90100 N/A N/A N/A N/A self skipTest Only available on PG 9.1 N/A inmap N/A N/A self std_map N/A N/A N/A inmap update N/A schema s1 N/A type t1 N/A attributes N/A N/A x N/A type integer N/A z N/A type integer N/A sql N/A N/A self to_sql inmap N/A CREATE SCHEMA s1 CREATE TYPE s1.t1 AS (x integer, y integer, z integer) N/A N/A N/A fix_indent N/A sql N/A 0 ALTER TYPE s1.t1 DROP ATTRIBUTE y N/A test_rename_attribute N/A N/A self N/A N/A N/A Rename an attribute of a composite type N/A N/A N/A N/A self db version 90100 N/A N/A N/A N/A self skipTest Only available on PG 9.1 N/A inmap N/A N/A self std_map N/A N/A N/A N/A inmap N/A schema public update N/A type t1 N/A attributes N/A N/A x N/A type integer N/A y1 N/A type oldname integer y N/A z N/A type integer N/A sql N/A N/A self to_sql inmap N/A CREATE_COMPOSITE_STMT N/A N/A N/A fix_indent N/A sql N/A 0 ALTER TYPE t1 RENAME ATTRIBUTE y TO y1 N/A N/A EnumToMapTestCase N/A DatabaseToMapTestCase N/A N/A Test mapping of created enum types test_enum N/A N/A self N/A N/A N/A Map an enum N/A dbmap N/A N/A self to_map N/A CREATE_ENUM_STMT N/A N/A N/A N/A dbmap N/A schema public N/A type t1 N/A labels N/A red green blue N/A N/A EnumToSqlTestCase N/A InputMapToSqlTestCase N/A N/A Test SQL generation from input enums test_create_enum N/A N/A self N/A N/A N/A Create an enum N/A inmap N/A N/A self std_map N/A N/A N/A N/A inmap N/A schema public update N/A type t1 N/A labels N/A red green blue N/A sql N/A N/A self to_sql inmap N/A N/A N/A fix_indent N/A sql N/A 0 CREATE_ENUM_STMT N/A test_drop_enum N/A N/A self N/A N/A N/A Drop an existing enum N/A sql N/A N/A self to_sql N/A N/A self std_map N/A CREATE_ENUM_STMT N/A N/A sql N/A DROP TYPE t1 N/A test_rename_enum N/A N/A self N/A N/A N/A Rename an existing enum N/A inmap N/A N/A self std_map N/A N/A N/A N/A inmap N/A schema public update N/A type t2 N/A oldname labels t1 N/A red green blue N/A sql N/A N/A self to_sql inmap N/A CREATE_ENUM_STMT N/A N/A sql N/A ALTER TYPE t1 RENAME TO t2 N/A N/A BaseTypeToMapTestCase N/A DatabaseToMapTestCase N/A N/A Test mapping of created base type types N/A superuser True test_base_type N/A N/A self N/A N/A N/A Map a base type N/A stmts N/A CREATE_SHELL_STMT CREATE_FUNC_IN CREATE_FUNC_OUT CREATE_TYPE_STMT N/A dbmap N/A N/A self to_map stmts N/A N/A N/A N/A dbmap N/A schema public N/A type t1 N/A input output internallength alignment storage category t1textin t1textout variable int4 plain U N/A test_base_type_category N/A N/A self N/A N/A N/A Map a base type N/A stmts N/A CREATE_SHELL_STMT CREATE_FUNC_IN CREATE_FUNC_OUT CREATE TYPE t1 (INPUT = t1textin, OUTPUT = t1textout, CATEGORY = 'S') N/A dbmap N/A N/A self to_map stmts N/A N/A N/A N/A dbmap N/A schema public N/A type t1 N/A input output internallength alignment storage category t1textin t1textout variable int4 plain S N/A N/A BaseTypeToSqlTestCase N/A InputMapToSqlTestCase N/A N/A Test SQL generation from input base types test_create_base_type N/A N/A self N/A N/A N/A Create a base type N/A inmap N/A N/A self std_map N/A N/A N/A N/A inmap N/A schema public update N/A type t1 function t1textin(cstring) function t1textout(t1) N/A input output internallength alignment storage t1textin t1textout variable int4 plain N/A language returns strict volatility source internal t1 True immutable textin N/A language returns strict volatility source internal cstring True immutable textout N/A sql N/A N/A self to_sql inmap N/A N/A N/A fix_indent N/A sql N/A 0 CREATE_SHELL_STMT N/A N/A N/A fix_indent N/A sql N/A 1 CREATE_FUNC_IN N/A N/A N/A fix_indent N/A sql N/A 2 CREATE_FUNC_OUT N/A N/A N/A fix_indent N/A sql N/A 3 CREATE TYPE t1 (INPUT = t1textin, OUTPUT = t1textout, INTERNALLENGTH = variable, ALIGNMENT = int4, STORAGE = plain) N/A test_drop_type N/A N/A self N/A N/A N/A Drop an existing base type N/A stmts N/A CREATE_SHELL_STMT CREATE_FUNC_IN CREATE_FUNC_OUT CREATE_TYPE_STMT N/A sql N/A N/A self to_sql N/A N/A self std_map stmts superuser True N/A N/A sql N/A DROP TYPE t1 CASCADE N/A N/A