pglast.printers.ddl — DDL printer functions

pglast.printers.ddl.access_priv(node, output)

Pretty print a node of type AccessPriv to the output stream.

pglast.printers.ddl.alter_collation_stmt(node, output)

Pretty print a node of type AlterCollationStmt to the output stream.

pglast.printers.ddl.alter_database_stmt(node, output)

Pretty print a node of type AlterDatabaseStmt to the output stream.

pglast.printers.ddl.alter_database_set_stmt(node, output)

Pretty print a node of type AlterDatabaseSetStmt to the output stream.

pglast.printers.ddl.alter_extension_stmt(node, output)

Pretty print a node of type AlterExtensionStmt to the output stream.

pglast.printers.ddl.alter_extension_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a AlterExtensionStmt, to the output stream.

pglast.printers.ddl.alter_extension_contents_stmt(node, output)

Pretty print a node of type AlterExtensionContentsStmt to the output stream.

pglast.printers.ddl.alter_enum_stmt(node, output)

Pretty print a node of type AlterEnumStmt to the output stream.

pglast.printers.ddl.alter_default_privileges_stmt(node, output)

Pretty print a node of type AlterDefaultPrivilegesStmt to the output stream.

pglast.printers.ddl.alter_function_stmt(node, output)

Pretty print a node of type AlterFunctionStmt to the output stream.

pglast.printers.ddl.alter_object_schema_stmt(node, output)

Pretty print a node of type AlterObjectSchemaStmt to the output stream.

pglast.printers.ddl.alter_operator_stmt(node, output)

Pretty print a node of type AlterOperatorStmt to the output stream.

pglast.printers.ddl.alter_operator_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a AlterOperatorStmt, to the output stream.

pglast.printers.ddl.alter_op_family_stmt(node, output)

Pretty print a node of type AlterOpFamilyStmt to the output stream.

pglast.printers.ddl.alter_owner_stmt(node, output)

Pretty print a node of type AlterOwnerStmt to the output stream.

pglast.printers.ddl.alter_policy_stmt(node, output)

Pretty print a node of type AlterPolicyStmt to the output stream.

pglast.printers.ddl.alter_role_stmt(node, output)

Pretty print a node of type AlterRoleStmt to the output stream.

pglast.printers.ddl.alter_seq_stmt(node, output)

Pretty print a node of type AlterSeqStmt to the output stream.

pglast.printers.ddl.alter_table_stmt(node, output)

Pretty print a node of type AlterTableStmt to the output stream.

pglast.printers.ddl.range_var(node, output)

Pretty print a node of type RangeVar, when it is inside a AlterTableStmt, to the output stream.

pglast.printers.ddl.alter_table_cmd(node, output)

Pretty print a node of type AlterTableCmd to the output stream.

pglast.printers.ddl.alter_table_cmd_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a AlterTableCmd, to the output stream.

pglast.printers.ddl.alter_table_cmd_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreatePublicationStmt, to the output stream.

pglast.printers.ddl.alter_table_cmd_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreateStmt, to the output stream.

pglast.printers.ddl.alter_table_cmd_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a IndexStmt, to the output stream.

pglast.printers.ddl.alter_table_cmd_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a IntoClause, to the output stream.

pglast.printers.ddl.alter_ts_configuration_stmt(node, output)

Pretty print a node of type AlterTSConfigurationStmt to the output stream.

pglast.printers.ddl.alter_ts_dictionary_stmt(node, output)

Pretty print a node of type AlterTSDictionaryStmt to the output stream.

pglast.printers.ddl.alter_stats_stmt(node, output)

Pretty print a node of type AlterStatsStmt to the output stream.

pglast.printers.ddl.alter_subscription_stmt(node, output)

Pretty print a node of type AlterSubscriptionStmt to the output stream.

pglast.printers.ddl.alter_publication_stmt(node, output)

Pretty print a node of type AlterPublicationStmt to the output stream.

pglast.printers.ddl.alter_fdw_stmt(node, output)

Pretty print a node of type AlterFdwStmt to the output stream.

pglast.printers.ddl.alter_fdw_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a AlterFdwStmt, to the output stream.

pglast.printers.ddl.alter_foreign_server_stmt(node, output)

Pretty print a node of type AlterForeignServerStmt to the output stream.

pglast.printers.ddl.alter_user_mapping_stmt(node, output)

Pretty print a node of type AlterUserMappingStmt to the output stream.

pglast.printers.ddl.alter_role_set_stmt(node, output)

Pretty print a node of type AlterRoleSetStmt to the output stream.

pglast.printers.ddl.alter_domain_stmt(node, output)

Pretty print a node of type AlterDomainStmt to the output stream.

pglast.printers.ddl.alter_event_trig_stmt(node, output)

Pretty print a node of type AlterEventTrigStmt to the output stream.

pglast.printers.ddl.alter_type_stmt(node, output)

Pretty print a node of type AlterTypeStmt to the output stream.

pglast.printers.ddl.check_point_stmt(node, output)

Pretty print a node of type CheckPointStmt to the output stream.

pglast.printers.ddl.cluster_stmt(node, output)

Pretty print a node of type ClusterStmt to the output stream.

pglast.printers.ddl.column_def(node, output)

Pretty print a node of type ColumnDef to the output stream.

pglast.printers.ddl.comment_stmt(node, output)

Pretty print a node of type CommentStmt to the output stream.

pglast.printers.ddl.composite_type_stmt(node, output)

Pretty print a node of type CompositeTypeStmt to the output stream.

pglast.printers.ddl.composite_type_stmt_range_var(node, output)

Pretty print a node of type RangeVar, when it is inside a CompositeTypeStmt, to the output stream.

pglast.printers.ddl.constraint(node, output)

Pretty print a node of type Constraint to the output stream.

pglast.printers.ddl.create_am_stmt(node, output)

Pretty print a node of type CreateAmStmt to the output stream.

pglast.printers.ddl.create_db_stmt(node, output)

Pretty print a node of type CreatedbStmt to the output stream.

pglast.printers.ddl.create_db_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreatedbStmt, to the output stream.

pglast.printers.ddl.create_cast_stmt(node, output)

Pretty print a node of type CreateCastStmt to the output stream.

pglast.printers.ddl.create_conversion_stmt(node, output)

Pretty print a node of type CreateConversionStmt to the output stream.

pglast.printers.ddl.create_domain_stmt(node, output)

Pretty print a node of type CreateDomainStmt to the output stream.

pglast.printers.ddl.create_enum_stmt(node, output)

Pretty print a node of type CreateEnumStmt to the output stream.

pglast.printers.ddl.create_event_trig_stmt(node, output)

Pretty print a node of type CreateEventTrigStmt to the output stream.

pglast.printers.ddl.create_event_trig_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreateEventTrigStmt, to the output stream.

pglast.printers.ddl.create_extension_stmt(node, output)

Pretty print a node of type CreateExtensionStmt to the output stream.

pglast.printers.ddl.create_extension_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreateExtensionStmt, to the output stream.

pglast.printers.ddl.create_fdw_stmt(node, output)

Pretty print a node of type CreateFdwStmt to the output stream.

pglast.printers.ddl.create_fdw_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a ColumnDef, to the output stream.

pglast.printers.ddl.create_fdw_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreateUserMappingStmt, to the output stream.

pglast.printers.ddl.create_fdw_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreateFdwStmt, to the output stream.

pglast.printers.ddl.create_foreign_server_stmt(node, output)

Pretty print a node of type CreateForeignServerStmt to the output stream.

pglast.printers.ddl.create_foreign_table_stmt(node, output)

Pretty print a node of type CreateForeignTableStmt to the output stream.

pglast.printers.ddl.create_foreign_table_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreateForeignTableStmt, to the output stream.

pglast.printers.ddl.create_foreign_table_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreateForeignServerStmt, to the output stream.

pglast.printers.ddl.create_function_stmt(node, output)

Pretty print a node of type CreateFunctionStmt to the output stream.

pglast.printers.ddl.create_function_option(node, output)

Pretty print a node of type DefElem, when it is inside a AlterFunctionStmt or a CreateFunctionStmt or a DoStmt, to the output stream.

pglast.printers.ddl.create_opclass_stmt(node, output)

Pretty print a node of type CreateOpClassStmt to the output stream.

pglast.printers.ddl.create_opclass_item(node, output)

Pretty print a node of type CreateOpClassItem to the output stream.

pglast.printers.ddl.create_op_family_stmt(node, output)

Pretty print a node of type CreateOpFamilyStmt to the output stream.

pglast.printers.ddl.create_plang_stmt(node, output)

Pretty print a node of type CreatePLangStmt to the output stream.

pglast.printers.ddl.create_policy_stmt(node, output)

Pretty print a node of type CreatePolicyStmt to the output stream.

pglast.printers.ddl.create_publication_stmt(node, output)

Pretty print a node of type CreatePublicationStmt to the output stream.

pglast.printers.ddl.create_publication_stmt_range_var(node, output)

Pretty print a node of type RangeVar, when it is inside a CreatePublicationStmt, to the output stream.

pglast.printers.ddl.create_range_stmt(node, output)

Pretty print a node of type CreateRangeStmt to the output stream.

pglast.printers.ddl.create_role_stmt(node, output)

Pretty print a node of type CreateRoleStmt to the output stream.

pglast.printers.ddl.create_or_alter_role_option(node, output)

Pretty print a node of type DefElem, when it is inside a AlterRoleStmt, to the output stream.

pglast.printers.ddl.create_or_alter_role_option(node, output)

Pretty print a node of type DefElem, when it is inside a CreateRoleStmt, to the output stream.

pglast.printers.ddl.create_schema_stmt(node, output)

Pretty print a node of type CreateSchemaStmt to the output stream.

pglast.printers.ddl.create_seq_stmt(node, output)

Pretty print a node of type CreateSeqStmt to the output stream.

pglast.printers.ddl.create_seq_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a Constraint, to the output stream.

pglast.printers.ddl.create_seq_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreateSeqStmt, to the output stream.

pglast.printers.ddl.create_seq_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a AlterSeqStmt, to the output stream.

pglast.printers.ddl.create_stats_stmt(node, output)

Pretty print a node of type CreateStatsStmt to the output stream.

pglast.printers.ddl.create_stmt(node, output)

Pretty print a node of type CreateStmt to the output stream.

pglast.printers.ddl.create_table_as_stmt(node, output)

Pretty print a node of type CreateTableAsStmt to the output stream.

pglast.printers.ddl.create_table_space_stmt(node, output)

Pretty print a node of type CreateTableSpaceStmt to the output stream.

pglast.printers.ddl.create_trig_stmt(node, output)

Pretty print a node of type CreateTrigStmt to the output stream.

pglast.printers.ddl.create_subscription_stmt_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a AlterSubscriptionStmt, to the output stream.

pglast.printers.ddl.create_subscription_stmt_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a CreateSubscriptionStmt, to the output stream.

pglast.printers.ddl.create_subscription_stmt(node, output)

Pretty print a node of type CreateSubscriptionStmt to the output stream.

pglast.printers.ddl.current_of_expr(node, output)

Pretty print a node of type CurrentOfExpr to the output stream.

pglast.printers.ddl.create_transform_stmt(node, output)

Pretty print a node of type CreateTransformStmt to the output stream.

pglast.printers.ddl.close_portal_stmt(node, output)

Pretty print a node of type ClosePortalStmt to the output stream.

pglast.printers.ddl.create_user_mapping_stmt(node, output)

Pretty print a node of type CreateUserMappingStmt to the output stream.

pglast.printers.ddl.deallocate_stmt(node, output)

Pretty print a node of type DeallocateStmt to the output stream.

pglast.printers.ddl.define_stmt(node, output)

Pretty print a node of type DefineStmt to the output stream.

pglast.printers.ddl.def_elem(node, output)

Pretty print a node of type DefElem to the output stream.

pglast.printers.ddl.define_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a DefineStmt, to the output stream.

pglast.printers.ddl.discard_stmt(node, output)

Pretty print a node of type DiscardStmt to the output stream.

pglast.printers.ddl.do_stmt(node, output)

Pretty print a node of type DoStmt to the output stream.

pglast.printers.ddl.drop_db_stmt(node, output)

Pretty print a node of type DropdbStmt to the output stream.

pglast.printers.ddl.drop_owned_stmt(node, output)

Pretty print a node of type DropOwnedStmt to the output stream.

pglast.printers.ddl.drop_role_stmt(node, output)

Pretty print a node of type DropRoleStmt to the output stream.

pglast.printers.ddl.drop_stmt(node, output)

Pretty print a node of type DropStmt to the output stream.

pglast.printers.ddl.drop_subscription_stmt(node, output)

Pretty print a node of type DropSubscriptionStmt to the output stream.

pglast.printers.ddl.drop_table_space_stmt(node, output)

Pretty print a node of type DropTableSpaceStmt to the output stream.

pglast.printers.ddl.drop_user_mapping_stmt(node, output)

Pretty print a node of type DropUserMappingStmt to the output stream.

pglast.printers.ddl.function_parameter(node, output)

Pretty print a node of type FunctionParameter to the output stream.

pglast.printers.ddl.grant_stmt(node, output)

Pretty print a node of type GrantStmt to the output stream.

pglast.printers.ddl.grant_role_stmt(node, output)

Pretty print a node of type GrantRoleStmt to the output stream.

pglast.printers.ddl.import_foreign_schema_stmt(node, output)

Pretty print a node of type ImportForeignSchemaStmt to the output stream.

pglast.printers.ddl.index_stmt(node, output)

Pretty print a node of type IndexStmt to the output stream.

pglast.printers.ddl.lock_stmt(node, output)

Pretty print a node of type LockStmt to the output stream.

pglast.printers.ddl.notify_stmt(node, output)

Pretty print a node of type NotifyStmt to the output stream.

pglast.printers.ddl.object_with_args(node, output)

Pretty print a node of type ObjectWithArgs to the output stream.

pglast.printers.ddl.alter_object_schema_stmt_object_with_args(node, output)

Pretty print a node of type ObjectWithArgs, when it is inside a AlterObjectSchemaStmt, to the output stream.

pglast.printers.ddl.alter_operator_stmt_object_with_args(node, output)

Pretty print a node of type ObjectWithArgs, when it is inside a AlterOperatorStmt, to the output stream.

pglast.printers.ddl.alter_owner_stmt_object_with_args(node, output)

Pretty print a node of type ObjectWithArgs, when it is inside a AlterOwnerStmt, to the output stream.

pglast.printers.ddl.comment_stmt_object_with_args(node, output)

Pretty print a node of type ObjectWithArgs, when it is inside a CommentStmt, to the output stream.

pglast.printers.ddl.drop_stmt_object_with_args(node, output)

Pretty print a node of type ObjectWithArgs, when it is inside a DropStmt, to the output stream.

pglast.printers.ddl.partition_bound_spec(node, output)

Pretty print a node of type PartitionBoundSpec to the output stream.

pglast.printers.ddl.partition_cmd(node, output)

Pretty print a node of type PartitionCmd to the output stream.

pglast.printers.ddl.partition_elem(node, output)

Pretty print a node of type PartitionElem to the output stream.

pglast.printers.ddl.partition_range_datum(node, output)

Pretty print a node of type PartitionRangeDatum to the output stream.

pglast.printers.ddl.partition_spec(node, output)

Pretty print a node of type PartitionSpec to the output stream.

pglast.printers.ddl.reindex_stmt(node, output)

Pretty print a node of type ReindexStmt to the output stream.

pglast.printers.ddl.rename_stmt(node, output)

Pretty print a node of type RenameStmt to the output stream.

pglast.printers.ddl.rename_stmt_range_var(node, output)

Pretty print a node of type RangeVar, when it is inside a RenameStmt, to the output stream.

pglast.printers.ddl.replica_identity_stmt(node, output)

Pretty print a node of type ReplicaIdentityStmt to the output stream.

pglast.printers.ddl.role_spec(node, output)

Pretty print a node of type RoleSpec to the output stream.

pglast.printers.ddl.rule_stmt_printer(node, output)

Pretty print a node of type RuleStmt to the output stream.

pglast.printers.ddl.refresh_mat_view_stmt(node, output)

Pretty print a node of type RefreshMatViewStmt to the output stream.

pglast.printers.ddl.reassign_owned_stmt(node, output)

Pretty print a node of type ReassignOwnedStmt to the output stream.

pglast.printers.ddl.sec_label_stmt(node, output)

Pretty print a node of type SecLabelStmt to the output stream.

pglast.printers.ddl.table_like_clause(node, output)

Pretty print a node of type TableLikeClause to the output stream.

pglast.printers.ddl.trigger_transition(node, output)

Pretty print a node of type TriggerTransition to the output stream.

pglast.printers.ddl.vacuum_stmt(node, output)

Pretty print a node of type VacuumStmt to the output stream.

pglast.printers.ddl.vacuum_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a VacuumStmt, to the output stream.

pglast.printers.ddl.vacuum_relation(node, output)

Pretty print a node of type VacuumRelation to the output stream.

pglast.printers.ddl.variable_show_statement(node, output)

Pretty print a node of type VariableShowStmt to the output stream.

pglast.printers.ddl.view_stmt(node, output)

Pretty print a node of type ViewStmt to the output stream.

pglast.printers.ddl.view_stmt_def_elem(node, output)

Pretty print a node of type DefElem, when it is inside a ViewStmt, to the output stream.