Question that may not have an answer

------=_Part_12372_9744734.1190059449858
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I'm working on a project where we have data stored in arrays that we need to
put into a database. We'd started with CSV (it was easiest), but it's
become unmanagable.

However, I don't want to go through the pain of getting a mysql database or
other database server set up to put the data into.

I recall talking to someone about perl having an internal database file
where you could store the data in a file, and access it relatively easily,
without having to set up an interface to an external database server.

Or am I completely wrong, and there isn't such a thing?


Scott Mohnkern

------=_Part_12372_9744734.1190059449858--
mohnkern [ Mo, 17 September 2007 22:04 ] [ ID #1822736 ]

RE: Question that may not have an answer

You can keep the data in CSV format and use DBD::CSV to access the data.

http://search.cpan.org/~jzucker/DBD-CSV-0.22/lib/DBD/CSV.pm

________________________________________________________
Anna Q. Fong, Chief Phone: (916)
574-2632
Flood Operations, Decision Support
Division of Flood Management Fax: (916) 574-2767
CA Dept of Water Resources Pager: (916) 762-2669




-----Original Message-----
From: Scott Mohnkern [mailto:mohnkern [at] gmail.com]
Sent: Monday, September 17, 2007 1:04 PM
To: dbi-users [at] perl.org
Subject: Question that may not have an answer

I'm working on a project where we have data stored in arrays that we
need to
put into a database. We'd started with CSV (it was easiest), but it's
become unmanagable.

However, I don't want to go through the pain of getting a mysql database
or
other database server set up to put the data into.

I recall talking to someone about perl having an internal database file
where you could store the data in a file, and access it relatively
easily,
without having to set up an interface to an external database server.

Or am I completely wrong, and there isn't such a thing?


Scott Mohnkern
anna [ Mo, 17 September 2007 22:12 ] [ ID #1822737 ]

Re: Question that may not have an answer

On Mon, 17 Sep 2007 16:04:09 -0400, Scott Mohnkern wrote
> I'm working on a project where we have data stored in arrays that we
> need to put into a database. We'd started with CSV (it was easiest),
> but it's become unmanagable.
>
> However, I don't want to go through the pain of getting a mysql
> database or other database server set up to put the data into.
>
> I recall talking to someone about perl having an internal database file
> where you could store the data in a file, and access it relatively
> easily, without having to set up an interface to an external
> database server.
>
> Or am I completely wrong, and there isn't such a thing?
>
> Scott Mohnkern


You're looking for SQLite:

http://www.sqlite.org/

and

http://search.cpan.org/~msergeant/DBD-SQLite-1.13/lib/DBD/SQ Lite.pm

Alex
Alex [ Mo, 17 September 2007 22:07 ] [ ID #1822738 ]

Re: Question that may not have an answer

Scott Mohnkern wrote:
> I'm working on a project where we have data stored in arrays that we need to
> put into a database. We'd started with CSV (it was easiest), but it's
> become unmanagable.
>
> However, I don't want to go through the pain of getting a mysql database or
> other database server set up to put the data into.
>
> I recall talking to someone about perl having an internal database file
> where you could store the data in a file, and access it relatively easily,
> without having to set up an interface to an external database server.
>
> Or am I completely wrong, and there isn't such a thing?
>
>
> Scott Mohnkern
>
>
You're probably thinking of SQLite
> http://search.cpan.org/~msergeant/DBD-SQLite-1.13/lib/DBD/SQ Lite.pm
bill [ Mo, 17 September 2007 23:15 ] [ ID #1822739 ]

Re: Question that may not have an answer

> Scott Mohnkern wrote:

Hi Scott

>> I recall talking to someone about perl having an internal database file

Your Perl should have come with: AnyDBM_File.html

--
Ron Savage
ron [at] savage.net.au
http://savage.net.au/index.html
ron [ Di, 18 September 2007 00:49 ] [ ID #1822740 ]
Perl » perl.dbi.users » Question that may not have an answer

Vorheriges Thema: Possible to do Connect Caching? connect, pull, wait 30secs, pull
Nächstes Thema: odd install problem with DBD::Pg