DBD::SQLite 3.0

Matts on 2004-07-16T13:38:48

All tests successful. Files=24, Tests=355, 6 wallclock secs ( 3.12 cusr + 0.91 csys = 4.03 CPU)

Woot!

Now I'm going to extend it a bit - SQLite 3.0 allows some nice things like busy handlers which I'd like to add before release.


insert id

Juerd on 2004-07-16T16:18:38

Can you please also implement the new last_insert_id thing that DBI has? I know there is already a func thing that you can use, but it's nice to have something that works with multiple DBDs.

Re:insert id

Matts on 2004-07-17T10:15:13

Err, any idea how I do that? The DBI::DBD docs don't say anything about it.

Re:insert id

Juerd on 2004-07-17T11:21:27

I don't know exactly (familiar with neither C nor DBI's internals), but at least DBD::mysql and DBD::Pg implement it. grep its tree for dbd_db_last_insert_id.

See also http://groups.google.com/groups?selm=20030307221500.GQ352%40dansat.data-plan.com

Re:insert id

Matts on 2004-07-18T08:57:36

Got it working. Thanks.

This is going to help me

jdavidb on 2004-07-16T17:35:44

Maybe not today, but I know that for new projects I'll definitely choose the newer version. I'm not sure I'd want to move existing projects there due to file format issues (how did you address that, btw? or did you?).

Haven't gotten to use SQLite at work as much as I might have liked, but I've been using DBD::SQLite extensively for my master's thesis work. As I said before, I owe you a nice meal.

Re:This is going to help me

Juerd on 2004-07-17T11:29:53

I'm not sure I'd want to move existing projects there due to file format issues.

Converting an SQLite 2 database to SQLite 3 is a matter of doing: sqlite foo.db .dump | sqlite foo.db.new; mv foo.db{,.old}; mv foo.db{.new,}

Far out

zatoichi on 2004-07-18T01:28:35

Where do I send the check?