NAME

Pg::SQL::PrettyPrinter::Node::InsertStmt - Class representing insert statement

SYNOPSIS

Not to be used directly.

FUNCTIONS

Aside from functions listed below, it inherits functions from Pg::SQL::PrettyPrinter::Node.

new

Makes object, first using parent's constructur, and then "unpacks" it's elements.

as_text

Returns this object as plain text, with next to none formatting.

pretty_print

Returns this object as text using pretty printing.

conflict_handling

Returns set of strings (lines/words) that represent whole ON CONFLICT clause for this insert.

Optional argument, if set, will make SET/WHERE clauses indented.

build_set_array

Reformats targetList into easier-to-use array of hashes. This is for ON CONFLICT UPDATE SET ... elements.

relname

Name of the relation that the insert is working on.

AUTHOR

hubert depesz lubaczewski, <depesz at depesz.com>

BUGS

Please report any bugs or feature requests to depesz at depesz.com.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Pg::SQL::PrettyPrinter::Node::InsertStmt