NAME

FlyBy - Ad hoc denormalized querying

SYNOPSIS

use FlyBy;

my $fb = FlyBy->new;
$fb->add_records({array => 'of'}, {hash => 'references'}, {with => 'fields'});
my @array_of_hash_refs = $fb->query({'key' => ['value', 'other value']});

# Or with a 'reduction list':
my @array = $fb->query({'key' => 'value'}, ['some key']);
my @array_of_array_refs = $fb->query({'key' =>'value', 'other key' => 'other value'},
  ['some key', 'some other key']);

DESCRIPTION

FlyBy is a system to allow for ad hoc querying of data which may not exist in a traditional datastore at runtime

USAGE

CAVEATS

Note that supplied keys may not begin with an `!`. Thought has been given to making this configurable at creation, but it was deemed to be unnecessary complexity.

This software is in an early state. The internal representation and external API are subject to deep breaking change.

This software is not tuned for efficiency. If it is not being used to resolve many queries on each instance or if the data is available from a single canonical source, there are likely better solutions available in CPAN.

AUTHOR

Binary.com

COPYRIGHT

Copyright 2015- Binary.com

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.