Group
Extension

Matches 3

Pg-SQL-PrettyPrinter ( D/DE/DEPESZ/Pg-SQL-PrettyPrinter-0.11.tar.gz, DEPESZ, 2023; MetaCPAN )
Pg-SQL-PrettyPrinter/lib/Pg/SQL/PrettyPrinter.pod ( view source; MetaCPAN )
s being sent from the parser as JSON.

=head2 validate_struct

Checks if given structure (either from constructor's C<struct> field, or
obtained after deserializing JSON obtained from parsing microser
Pg-SQL-PrettyPrinter ( D/DE/DEPESZ/Pg-SQL-PrettyPrinter-0.11.tar.gz, DEPESZ, 2023; MetaCPAN )
Pg-SQL-PrettyPrinter/lib/Pg/SQL/PrettyPrinter/Node/String.pod ( view source; MetaCPAN )
r::Node>.

=head2 string

Helper method to return string value regardless of how it's provided in JSON.

This is required because of changes in underlying ruby library.

=head2 as_text

Returns this o
Pg-SQL-PrettyPrinter ( D/DE/DEPESZ/Pg-SQL-PrettyPrinter-0.11.tar.gz, DEPESZ, 2023; MetaCPAN )
Pg-SQL-PrettyPrinter/lib/Pg/SQL/PrettyPrinter.pm ( view source; MetaCPAN )
}
    else         { confess "Deadly warning: @_" }
};

# Useful common code

use HTTP::Tiny;
use JSON::MaybeXS;
use Pg::SQL::PrettyPrinter::Node;

our $VERSION = '0.11';

sub new {
    my ( $class, %
        croak( "Couldn't parse the queries! : " . Dumper( $res ) );
    }
    my $struct = decode_json( $res->{ 'content' } );
    croak( "Parse error: " . $struct->{ 'error' } ) if exists $struct->{ 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.