Skip to content

Commit

Permalink
Merge 474c80e into 86c68a0
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge committed Dec 5, 2018
2 parents 86c68a0 + 474c80e commit ed3579c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Changes for SQL::Translator

* Add support for parsing PostgreSQL dollar-quoted strings
* switched JSON backend from JSON.pm to JSON::MaybeXS

0.11024 2018-01-09

Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ my $deps = {
'XML::LibXML' => '1.69',
},
test_requires => {
'JSON' => '2.0',
'JSON::MaybeXS' => '1.003003',
'YAML' => '0.66',
'XML::Writer' => '0.500',
'Test::More' => '0.88',
Expand Down
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Parser/JSON.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ our $VERSION = '1.00';
use SQL::Translator::Schema;
use SQL::Translator::Utils qw(header_comment);
use Data::Dumper;
use JSON;
use JSON::MaybeXS 'from_json';

sub parse {
my ($translator, $data) = @_;
Expand Down
4 changes: 2 additions & 2 deletions lib/SQL/Translator/Producer/JSON.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use strict;
use warnings;
our $VERSION = '1.00';

use JSON;
use JSON::MaybeXS 'to_json';

sub produce {
my $translator = shift;
Expand Down Expand Up @@ -184,7 +184,7 @@ sub view_index {

=head1 SEE ALSO
SQL::Translator, JSON, http://www.json.org/.
SQL::Translator, JSON::MaybeXS, http://www.json.org/.
=head1 AUTHORS
Expand Down
2 changes: 1 addition & 1 deletion t/23json.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ BEGIN {
}

my $sqlt_version = $SQL::Translator::VERSION;
use JSON;
use JSON::MaybeXS 'from_json';
my $json = from_json(<<JSON);
{
"schema" : {
Expand Down

0 comments on commit ed3579c

Please sign in to comment.