in reply to Re: converting from some database format do Berkeley DB.
in thread converting from some database format do Berkeley DB.
how can we proceed to transform the table "dict" (which is the "dict.txt" file) into a BerkeleyDB file? is some other module necessary? note: the $dbh->prepare() and $sth->execute() lines in this code seem to be too slow; may that be because the dict file is too big (385090 lines)? thank you in advance.use DBI; $dbh = DBI->connect(qq{DBI:CSV:csv_sep_char=\\;}); $dbh->{'csv_tables'}->{'dict'} = { 'file' => 'dict.txt'}; $sth = $dbh->prepare("SELECT * FROM dict"); $sth->execute() or die "Cannot execute: " . $sth->errstr();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: converting from some database format do Berkeley DB.
by jZed (Prior) on Jul 19, 2007 at 16:04 UTC |