Rodster001 has asked for the wisdom of the Perl Monks concerning the following question:
I am then creating a database, populating it, and then using the following to write it to disk:my $sqlite = DBI->connect("dbi:SQLite:dbname=:memory:","","");
But, instead of writing the results to a file, I would actually like to assign that to a scalar (there are more things I need to do with it, and it would be faster than reading/writing a file on disk).$sqlite->sqlite_backup_to_file("/tmp/mydb.sqlite");
... is what I am looking for. I've looked around and tried a few different ways, but without any luck.my $database; $sqlite->sqlite_backup_to_file( $database );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SQLite in memory database to scalar
by Anonymous Monk on Mar 19, 2014 at 21:41 UTC | |
by Rodster001 (Pilgrim) on Mar 19, 2014 at 22:02 UTC | |
by Anonymous Monk on Mar 19, 2014 at 22:13 UTC | |
by Rodster001 (Pilgrim) on Mar 19, 2014 at 22:47 UTC | |
by Anonymous Monk on Mar 19, 2014 at 23:00 UTC | |
by afoken (Chancellor) on Mar 21, 2014 at 14:16 UTC | |
|
Re: SQLite in memory database to scalar
by NetWallah (Canon) on Mar 20, 2014 at 01:00 UTC | |
|
Re: SQLite in memory database to scalar
by Your Mother (Archbishop) on Mar 19, 2014 at 21:49 UTC | |
by Rodster001 (Pilgrim) on Mar 19, 2014 at 22:05 UTC | |
|
Re: SQLite in memory database to scalar
by Marshall (Canon) on Mar 20, 2014 at 06:16 UTC |