Group
Extension

Matches 4

DBIx-NoSQL ( Y/YA/YANICK/DBIx-NoSQL-0.0021.tar.gz, YANICK, 2017; MetaCPAN )
DBIx-NoSQL/lib/DBIx/NoSQL.pm ( view source; MetaCPAN )
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
DBIx-NoSQL ( Y/YA/YANICK/DBIx-NoSQL-0.0021.tar.gz, YANICK, 2017; MetaCPAN )
DBIx-NoSQL/lib/DBIx/NoSQL/Model.pm ( view source; MetaCPAN )
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
DBIx-NoSQL ( Y/YA/YANICK/DBIx-NoSQL-0.0021.tar.gz, YANICK, 2017; MetaCPAN )
DBIx-NoSQL/lib/DBIx/NoSQL/ClassScaffold.pm ( view source; MetaCPAN )
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
DBIx-NoSQL ( Y/YA/YANICK/DBIx-NoSQL-0.0021.tar.gz, YANICK, 2017; MetaCPAN )
DBIx-NoSQL/lib/DBIx/NoSQL/Store.pm ( view source; MetaCPAN )
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

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