On 9 Oct 2011, at 4:52pm, Tim Streater wrote:

> At present, I'm using PDO and setting it to throw exceptions. So I have a 
> try/catch around all my $dbh->query and in there, log what happened and 
> where, report to the user and then give up. I haven't looked closely at the 
> SQLite3 interface in PHP but it wasn't obvious whether I can use the same 
> exception mechanism or not. I'll have to see how to incorporate this in my 
> app but for now I'm giving up on multiple statements in one call to the 
> interface.

When you move from toy software to professional software, it becomes all about 
the error-handling.

I like the try/catch interface that I'm using with the SQLite3 API, but I'm not 
married to it, and other styles of programming will benefit more from other 
styles of error-trapping.

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to