The main issue with Bento::Meta currently is that there isn’t a clean way to get all models from the MDB a priori. You have to know what models you want to pull out.
updates $VERSION to '0.2'
This PR adds two functions to Bento::Meta
list_db_models($bolt_url) - lists all models (handles) in the database
load_all_db_handles($bolt_url) - loads all handles (from list_db_models($bolt_url)
avoids regexp warnings about unescaped left bracket in Cypher::Abstract::Peeler
Example code:
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper;
use Bento::Meta;
my $bolt_url = 'bolt://localhost:7687';
print "using version: $Bento::Meta::VERSION\n";
my $m = Bento::Meta->new;
my @handles = $m->list_db_models($bolt_url);
print Dumper(@handles);
or
my $m = Bento::Meta->new;
my @handles = $m->load_all_db_models($bolt_url);
print Dumper (@handles);
The main issue with Bento::Meta currently is that there isn’t a clean way to get all models from the MDB a priori. You have to know what models you want to pull out.
list_db_models($bolt_url)
- lists all models (handles) in the databaseload_all_db_handles($bolt_url)
- loads all handles (fromlist_db_models($bolt_url)
010_meta__load_all_db_models.t
(testing above functions)Example code:
or
attn: @majensen -- thoughts?