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.dml` --- DML printer functions 10======================================================== 11 12.. module:: pglast.printers.dml 13 :synopsis: DML printer functions 14 15.. index:: A_ArrayExpr 16 17.. function:: a_array_expr(node, output) 18 19 Pretty print a `node` of type `A_ArrayExpr <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L411>`__ to the `output` stream. 20 21.. index:: A_Const 22 23.. function:: a_const(node, output) 24 25 Pretty print a `node` of type `A_Const <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L284>`__ to the `output` stream. 26 27.. index:: A_Expr 28 29.. function:: a_expr(node, output) 30 31 Pretty print a `node` of type `A_Expr <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L271>`__ to the `output` stream. 32 33.. index:: A_Indices 34 35.. function:: a_indices(node, output) 36 37 Pretty print a `node` of type `A_Indices <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L378>`__ to the `output` stream. 38 39.. index:: A_Indirection 40 41.. function:: a_indirection(node, output) 42 43 Pretty print a `node` of type `A_Indirection <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L401>`__ to the `output` stream. 44 45.. index:: 46 pair: A_Indirection;A_Star 47 48.. function:: a_indirection_a_star(node, output) 49 50 Pretty print a `node` of type `A_Star <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L367>`__, when it is inside a `A_Indirection <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L401>`__, to the `output` stream. 51 52.. index:: 53 pair: A_Indirection;ColumnRef 54 55.. function:: a_indirection_column_ref(node, output) 56 57 Pretty print a `node` of type `ColumnRef <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L231>`__, when it is inside a `A_Indirection <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L401>`__, to the `output` stream. 58 59.. index:: 60 pair: A_Indirection;FuncCall 61 62.. function:: a_indirection_func_call(node, output) 63 64 Pretty print a `node` of type `FuncCall <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L346>`__, when it is inside a `A_Indirection <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L401>`__, to the `output` stream. 65 66.. index:: 67 pair: A_Indirection;String 68 69.. function:: a_indirection_field(node, output) 70 71 Pretty print a `node` of type `String <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/value.h#L42>`__, when it is inside a `A_Indirection <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L401>`__, to the `output` stream. 72 73.. index:: A_Star 74 75.. function:: a_star(node, output) 76 77 Pretty print a `node` of type `A_Star <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L367>`__ to the `output` stream. 78 79.. index:: Alias 80 81.. function:: alias(node, output) 82 83 Pretty print a `node` of type `Alias <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L39>`__ to the `output` stream. 84 85.. index:: BoolExpr 86 87.. function:: bool_expr(node, output) 88 89 Pretty print a `node` of type `BoolExpr <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L559>`__ to the `output` stream. 90 91.. index:: BooleanTest 92 93.. function:: boolean_test(node, output) 94 95 Pretty print a `node` of type `BooleanTest <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L1200>`__ to the `output` stream. 96 97.. index:: CaseExpr 98 99.. function:: case_expr(node, output) 100 101 Pretty print a `node` of type `CaseExpr <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L903>`__ to the `output` stream. 102 103.. index:: CaseWhen 104 105.. function:: case_when(node, output) 106 107 Pretty print a `node` of type `CaseWhen <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L917>`__ to the `output` stream. 108 109.. index:: CoalesceExpr 110 111.. function:: coalesce_expr(node, output) 112 113 Pretty print a `node` of type `CoalesceExpr <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L1042>`__ to the `output` stream. 114 115.. index:: CollateClause 116 117.. function:: collate_clause(node, output) 118 119 Pretty print a `node` of type `CollateClause <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L305>`__ to the `output` stream. 120 121.. index:: ColumnRef 122 123.. function:: column_ref(node, output) 124 125 Pretty print a `node` of type `ColumnRef <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L231>`__ to the `output` stream. 126 127.. index:: CommonTableExpr 128 129.. function:: common_table_expr(node, output) 130 131 Pretty print a `node` of type `CommonTableExpr <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1364>`__ to the `output` stream. 132 133.. index:: DeleteStmt 134 135.. function:: delete_stmt(node, output) 136 137 Pretty print a `node` of type `DeleteStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1457>`__ to the `output` stream. 138 139.. index:: Float 140 141.. function:: float(node, output) 142 143 Pretty print a `node` of type `Float <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/value.h#L42>`__ to the `output` stream. 144 145.. index:: FuncCall 146 147.. function:: func_call(node, output) 148 149 Pretty print a `node` of type `FuncCall <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L346>`__ to the `output` stream. 150 151.. index:: IndexElem 152 153.. function:: index_elem(node, output) 154 155 Pretty print a `node` of type `IndexElem <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L685>`__ to the `output` stream. 156 157.. index:: InferClause 158 159.. function:: infer_clause(node, output) 160 161 Pretty print a `node` of type `InferClause <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1333>`__ to the `output` stream. 162 163.. index:: Integer 164 165.. function:: integer(node, output) 166 167 Pretty print a `node` of type `Integer <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/value.h#L42>`__ to the `output` stream. 168 169.. index:: InsertStmt 170 171.. function:: insert_stmt(node, output) 172 173 Pretty print a `node` of type `InsertStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1441>`__ to the `output` stream. 174 175.. index:: JoinExpr 176 177.. function:: join_expr(node, output) 178 179 Pretty print a `node` of type `JoinExpr <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L1446>`__ to the `output` stream. 180 181.. index:: LockingClause 182 183.. function:: locking_clause(node, output) 184 185 Pretty print a `node` of type `LockingClause <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L734>`__ to the `output` stream. 186 187.. index:: MinMaxExpr 188 189.. function:: min_max_expr(node, output) 190 191 Pretty print a `node` of type `MinMaxExpr <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L1060>`__ to the `output` stream. 192 193.. index:: MultiAssignRef 194 195.. function:: multi_assign_ref(node, output) 196 197 Pretty print a `node` of type `MultiAssignRef <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L454>`__ to the `output` stream. 198 199.. index:: NamedArgExpr 200 201.. function:: named_arg_expr(node, output) 202 203 Pretty print a `node` of type `NamedArgExpr <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L475>`__ to the `output` stream. 204 205.. index:: Null 206 207.. function:: null(node, output) 208 209 Pretty print a `node` of type `Null <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/value.h#L42>`__ to the `output` stream. 210 211.. index:: NullTest 212 213.. function:: null_test(node, output) 214 215 Pretty print a `node` of type `NullTest <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L1177>`__ to the `output` stream. 216 217.. index:: ParamRef 218 219.. function:: param_ref(node, output) 220 221 Pretty print a `node` of type `ParamRef <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L241>`__ to the `output` stream. 222 223.. index:: OnConflictClause 224 225.. function:: on_conflict_clause(node, output) 226 227 Pretty print a `node` of type `OnConflictClause <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1348>`__ to the `output` stream. 228 229.. index:: RangeFunction 230 231.. function:: range_function(node, output) 232 233 Pretty print a `node` of type `RangeFunction <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L553>`__ to the `output` stream. 234 235.. index:: RangeSubselect 236 237.. function:: range_subselect(node, output) 238 239 Pretty print a `node` of type `RangeSubselect <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L531>`__ to the `output` stream. 240 241.. index:: RangeVar 242 243.. function:: range_var(node, output) 244 245 Pretty print a `node` of type `RangeVar <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L63>`__ to the `output` stream. 246 247.. index:: RawStmt 248 249.. function:: raw_stmt(node, output) 250 251 Pretty print a `node` of type `RawStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1421>`__ to the `output` stream. 252 253.. index:: ResTarget 254 255.. function:: res_target(node, output) 256 257 Pretty print a `node` of type `ResTarget <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L436>`__ to the `output` stream. 258 259.. index:: RowExpr 260 261.. function:: row_expr(node, output) 262 263 Pretty print a `node` of type `RowExpr <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L983>`__ to the `output` stream. 264 265.. index:: SelectStmt 266 267.. function:: select_stmt(node, output) 268 269 Pretty print a `node` of type `SelectStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1503>`__ to the `output` stream. 270 271.. index:: SetToDefault 272 273.. function:: set_to_default(node, output) 274 275 Pretty print a `node` of type `SetToDefault <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L1253>`__ to the `output` stream. 276 277.. index:: SortBy 278 279.. function:: sort_by(node, output) 280 281 Pretty print a `node` of type `SortBy <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L465>`__ to the `output` stream. 282 283.. index:: SQLValueFunction 284 285.. function:: sql_value_function(node, output) 286 287 Pretty print a `node` of type `SQLValueFunction <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L1101>`__ to the `output` stream. 288 289.. index:: String 290 291.. function:: string(node, output) 292 293 Pretty print a `node` of type `String <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/value.h#L42>`__ to the `output` stream. 294 295.. index:: SubLink 296 297.. function:: sub_link(node, output) 298 299 Pretty print a `node` of type `SubLink <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/primnodes.h#L631>`__ to the `output` stream. 300 301.. index:: TransactionStmt 302 303.. function:: transaction_stmt(node, output) 304 305 Pretty print a `node` of type `TransactionStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2928>`__ to the `output` stream. 306 307.. index:: 308 pair: TransactionStmt;DefElem 309 310.. function:: transaction_stmt_def_elem(node, output) 311 312 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 `TransactionStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2928>`__, to the `output` stream. 313 314.. index:: TruncateStmt 315 316.. function:: truncate_stmt(node, output) 317 318 Pretty print a `node` of type `TruncateStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L2586>`__ to the `output` stream. 319 320.. index:: TypeCast 321 322.. function:: type_cast(node, output) 323 324 Pretty print a `node` of type `TypeCast <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L294>`__ to the `output` stream. 325 326.. index:: TypeName 327 328.. function:: type_name(node, output) 329 330 Pretty print a `node` of type `TypeName <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L205>`__ to the `output` stream. 331 332.. index:: UpdateStmt 333 334.. function:: update_stmt(node, output) 335 336 Pretty print a `node` of type `UpdateStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1471>`__ to the `output` stream. 337 338.. index:: 339 pair: OnConflictClause;ResTarget 340 341.. index:: 342 pair: UpdateStmt;ResTarget 343 344.. function:: update_stmt_res_target(node, output) 345 346 Pretty print a `node` of type `ResTarget <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L436>`__, when it is inside a `OnConflictClause <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1348>`__ or a `UpdateStmt <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1471>`__, to the `output` stream. 347 348.. index:: WindowDef 349 350.. function:: window_def(node, output) 351 352 Pretty print a `node` of type `WindowDef <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L483>`__ to the `output` stream. 353 354.. index:: WithClause 355 356.. function:: with_clause(node, output) 357 358 Pretty print a `node` of type `WithClause <https://github.com/lfittl/libpg_query/blob/d710cb0/src/postgres/include/nodes/parsenodes.h#L1319>`__ to the `output` stream. 359