NAME

Pg::SQL::PrettyPrinter::Node::UpdateStmt - Class representing UPDATE 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.

build_set_array

Called from constructors makes ->{'_set'} array, which contains hashes, each containing:

  • col - if assignment is to single column, name of the column

  • cols - if assignment is to multiple columns, arrayref of column names

  • val - object representing assignment right side

as_text

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

pretty_print

Returns this object as text using pretty printing.

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::UpdateStmt