1.. -*- coding: utf-8 -*-
2.. :Project:   pglast -- DO NOT EDIT: generated automatically
3.. :Author:    Lele Gaifax <lele@metapensiero.it>
4.. :License:   GNU General Public License version 3 or later
5.. :Copyright: © 2017, 2018 Lele Gaifax
6..
7
8========================================================
9 :mod:`pglast.printers.ddl` --- DDL printer functions
10========================================================
11
12.. module:: pglast.printers.ddl
13   :synopsis: DDL printer functions
14
15.. index:: ColumnDef
16
17.. function:: column_def(node, output)
18
19   Pretty print a `node` of type `ColumnDef <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L636>`__ to the `output` stream.
20
21.. index:: CommentStmt
22
23.. function:: comment_stmt(node, output)
24
25   Pretty print a `node` of type `CommentStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2598>`__ to the `output` stream.
26
27.. index:: Constraint
28
29.. function:: constraint(node, output)
30
31   Pretty print a `node` of type `Constraint <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2075>`__ to the `output` stream.
32
33.. index:: CreateAmStmt
34
35.. function:: create_am_stmt(node, output)
36
37   Pretty print a `node` of type `CreateAmStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2336>`__ to the `output` stream.
38
39.. index:: CreateCastStmt
40
41.. function:: create_cast_stmt(node, output)
42
43   Pretty print a `node` of type `CreateCastStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L3252>`__ to the `output` stream.
44
45.. index:: CreateConversionStmt
46
47.. function:: create_conversion_stmt(node, output)
48
49   Pretty print a `node` of type `CreateConversionStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L3238>`__ to the `output` stream.
50
51.. index:: CreateDomainStmt
52
53.. function:: create_domain_stmt(node, output)
54
55   Pretty print a `node` of type `CreateDomainStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2502>`__ to the `output` stream.
56
57.. index:: CreateEventTrigStmt
58
59.. function:: create_event_trig_stmt(node, output)
60
61   Pretty print a `node` of type `CreateEventTrigStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2375>`__ to the `output` stream.
62
63.. index::
64   pair: CreateEventTrigStmt;DefElem
65
66.. function:: create_event_trig_stmt_def_elem(node, output)
67
68   Pretty print a `node` of type `DefElem <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L715>`__, when it is inside a `CreateEventTrigStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2375>`__, to the `output` stream.
69
70.. index:: CreateExtensionStmt
71
72.. function:: create_extension_stmt(node, output)
73
74   Pretty print a `node` of type `CreateExtensionStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2166>`__ to the `output` stream.
75
76.. index::
77   pair: CreateExtensionStmt;DefElem
78
79.. function:: create_extension_stmt_def_elem(node, output)
80
81   Pretty print a `node` of type `DefElem <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L715>`__, when it is inside a `CreateExtensionStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2166>`__, to the `output` stream.
82
83.. index:: CreateFdwStmt
84
85.. function:: create_fdw_stmt(node, output)
86
87   Pretty print a `node` of type `CreateFdwStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2196>`__ to the `output` stream.
88
89.. index::
90   pair: CreateFdwStmt;DefElem
91
92.. function:: create_fdw_stmt_def_elem(node, output)
93
94   Pretty print a `node` of type `DefElem <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L715>`__, when it is inside a `CreateFdwStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2196>`__, to the `output` stream.
95
96.. index:: CreateForeignTableStmt
97
98.. function:: create_foreign_table_stmt(node, output)
99
100   Pretty print a `node` of type `CreateForeignTableStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2242>`__ to the `output` stream.
101
102.. index::
103   pair: CreateForeignTableStmt;DefElem
104
105.. function:: create_foreign_table_stmt_def_elem(node, output)
106
107   Pretty print a `node` of type `DefElem <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L715>`__, when it is inside a `CreateForeignTableStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2242>`__, to the `output` stream.
108
109.. index:: CreateSchemaStmt
110
111.. function:: create_schema_stmt(node, output)
112
113   Pretty print a `node` of type `CreateSchemaStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1668>`__ to the `output` stream.
114
115.. index:: CreateSeqStmt
116
117.. function:: create_seq_stmt(node, output)
118
119   Pretty print a `node` of type `CreateSeqStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2464>`__ to the `output` stream.
120
121.. index::
122   pair: CreateSeqStmt;DefElem
123
124.. function:: create_seq_stmt_def_elem(node, output)
125
126   Pretty print a `node` of type `DefElem <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L715>`__, when it is inside a `CreateSeqStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2464>`__, to the `output` stream.
127
128.. index:: CreateStmt
129
130.. function:: create_stmt(node, output)
131
132   Pretty print a `node` of type `CreateStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1997>`__ to the `output` stream.
133
134.. index:: CreateTableAsStmt
135
136.. function:: create_table_as_stmt(node, output)
137
138   Pretty print a `node` of type `CreateTableAsStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L3134>`__ to the `output` stream.
139
140.. index:: CreatedbStmt
141
142.. function:: createdb_stmt(node, output)
143
144   Pretty print a `node` of type `CreatedbStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L3020>`__ to the `output` stream.
145
146.. index::
147   pair: CreatedbStmt;DefElem
148
149.. function:: create_db_stmt_def_elem(node, output)
150
151   Pretty print a `node` of type `DefElem <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L715>`__, when it is inside a `CreatedbStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L3020>`__, to the `output` stream.
152
153.. index:: DefineStmt
154
155.. function:: define_stmt(node, output)
156
157   Pretty print a `node` of type `DefineStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2487>`__ to the `output` stream.
158
159.. index:: DefElem
160
161.. function:: def_elem(node, output)
162
163   Pretty print a `node` of type `DefElem <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L715>`__ to the `output` stream.
164
165.. index::
166   pair: DefineStmt;DefElem
167
168.. function:: define_stmt_def_elem(node, output)
169
170   Pretty print a `node` of type `DefElem <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L715>`__, when it is inside a `DefineStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2487>`__, to the `output` stream.
171
172.. index:: DropdbStmt
173
174.. function:: drop_db_stmt(node, output)
175
176   Pretty print a `node` of type `DropdbStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L3049>`__ to the `output` stream.
177
178.. index:: DropOwnedStmt
179
180.. function:: drop_owned_stmt(node, output)
181
182   Pretty print a `node` of type `DropOwnedStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L3316>`__ to the `output` stream.
183
184.. index:: DropRoleStmt
185
186.. function:: drop_role_stmt(node, output)
187
188   Pretty print a `node` of type `DropRoleStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2452>`__ to the `output` stream.
189
190.. index:: DropStmt
191
192.. function:: drop_stmt(node, output)
193
194   Pretty print a `node` of type `DropStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2572>`__ to the `output` stream.
195
196.. index:: DropSubscriptionStmt
197
198.. function:: drop_subscription_stmt(node, output)
199
200   Pretty print a `node` of type `DropSubscriptionStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L3424>`__ to the `output` stream.
201
202.. index:: DropTableSpaceStmt
203
204.. function:: drop_table_space_stmt(node, output)
205
206   Pretty print a `node` of type `DropTableSpaceStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2136>`__ to the `output` stream.
207
208.. index:: DropUserMappingStmt
209
210.. function:: drop_user_mapping_stmt(node, output)
211
212   Pretty print a `node` of type `DropUserMappingStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2271>`__ to the `output` stream.
213
214.. index:: FunctionParameter
215
216.. function:: function_parameter(node, output)
217
218   Pretty print a `node` of type `FunctionParameter <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2756>`__ to the `output` stream.
219
220.. index:: IndexStmt
221
222.. function:: index_stmt(node, output)
223
224   Pretty print a `node` of type `IndexStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2693>`__ to the `output` stream.
225
226.. index:: ObjectWithArgs
227
228.. function:: object_with_args(node, output)
229
230   Pretty print a `node` of type `ObjectWithArgs <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1873>`__ to the `output` stream.
231
232.. index:: PartitionBoundSpec
233
234.. function:: partition_bound_spec(node, output)
235
236   Pretty print a `node` of type `PartitionBoundSpec <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L795>`__ to the `output` stream.
237
238.. index:: PartitionElem
239
240.. function:: partition_elem(node, output)
241
242   Pretty print a `node` of type `PartitionElem <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L762>`__ to the `output` stream.
243
244.. index:: PartitionRangeDatum
245
246.. function:: partition_range_datum(node, output)
247
248   Pretty print a `node` of type `PartitionRangeDatum <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L823>`__ to the `output` stream.
249
250.. index:: PartitionSpec
251
252.. function:: partition_spec(node, output)
253
254   Pretty print a `node` of type `PartitionSpec <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L777>`__ to the `output` stream.
255
256.. index:: RoleSpec
257
258.. function:: role_spec(node, output)
259
260   Pretty print a `node` of type `RoleSpec <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L324>`__ to the `output` stream.
261