ecessary
When writing data to the store, the data (a HASH reference) is first serialized using L<JSON> and then inserted/updated via L<DBIx::Class> to (currently) an SQLite backend
Retrieving data f
done by key lookup or by searching an SQL-based index. Once found, the data is deserialized via L<JSON> and returned
The API is fairly sane, though still beta
=head1 USAGE
=head2 $store = DBIx::NoS
c<$model> is written to, the index will be updated with the deflated value of C<$field> (since
L<JSON> can not trivially serialize blessed references)
=head2 $model->reindex
Reindex the C<$model> d
self->store->json->decode( $value );
return $data;
}
sub serialize {
my $self = shift;
my $data = shift;
return $data if ! ref $data;
my $value = $self->store->json->encode( $da
caffold::Schema::VERSION = '0.0021';
use Moose;
extends qw/ DBIx::Class::Schema /;
use JSON; our $json = JSON->new->pretty;
use Digest::SHA qw/ sha1_hex /;
has store => qw/ is rw weak_ref 1 /;
has
strict;
use warnings;
use Try::Tiny;
use Path::Class;
use JSON;
eval { require JSON::XS; };
our $json = JSON->new->pretty;
sub json { $json }
use DBIx::NoSQL::Model;
has database => qw/ is ro /;
h