projects
/
NoSQL-toys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8913e85
)
specify riak url and dsn as arguments
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 13 Nov 2010 22:51:44 +0000
(23:51 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 13 Nov 2010 22:51:44 +0000
(23:51 +0100)
koha/koha2riak-search.pl
patch
|
blob
|
history
diff --git
a/koha/koha2riak-search.pl
b/koha/koha2riak-search.pl
index
ed6281c
..
2fb5b4b
100755
(executable)
--- a/
koha/koha2riak-search.pl
+++ b/
koha/koha2riak-search.pl
@@
-6,8
+6,10
@@
use RiakSearch;
use Data::Dump qw/dump/;
-my $riak_url = 'http://10.60.0.92:8098';
-my $dbi = 'DBI:mysql:dbname=koha;host=10.60.0.10;port=3306';
+my ( $riak_url, $dbi ) = @ARGV;
+
+$riak_url ||= 'http://10.60.0.92:8098';
+$dbi ||= 'DBI:mysql:dbname=koha;host=10.60.0.10;port=3306';
my @tables = qw(
biblioitems
biblio