Subject: | Unfriendly creation of SQLite store |
Creating an SQLite store could be easier. With SQLite you do not need
username and password, and you can check to init the database, if the
file does not exist yet. However just calling
RDF::Trine::Store-
Show quoted text
>new_with_string("DBI;;DBI:SQLite:filename=myfile.sqlite");
Results in the following errors:
Use of uninitialized value $user in concatenation (.) or string at
/usr/local/share/perl/5.10.0/RDF/Trine/Store/DBI.pm line 145.
Use of uninitialized value $pass in concatenation (.) or string at
/usr/local/share/perl/5.10.0/RDF/Trine/Store/DBI.pm line 145.
DBD::SQLite::db prepare failed: no such table: Resources at
/usr/local/share/perl/5.10.0/RDF/Trine/Store/DBI.pm line 572, <$fh> line
1.
It would be nice to have a simple way to quickly create and use a SQLite
store in one line of code. By the way: Why is there no simple
RDF::Trine::Store->new( $hashref | $string )?