package DBIx::JSON;
use warnings;
use strict;
=head1 NAME
DBIx::JSON - JSON serialization plugin for DBIx
=head1 DESCRIPTION
This module is a DBIx extension to fetch data in JSON format from
dat
Ix::JSON->new( $dsn, "mysql", $dbusername, $dbpasswd )
->do_select("select * from table;")->get_json;
or
my $dsn = "dbname=$dbname;host=$host;port=$port";
my $obj = DBIx::JSON->n
n1", 1);
$obj->err && die $obj->errstr;
print $obj->get_json;
=head1 EXPORT
None.
=cut
use DBI 1.15 ();
use Carp ();
use JSON::Syck;
sub new {
my $class = shift;
my $self = {};