in reply to INSERT or UPDATE
in thread EZDBI is an easier interface to SQL databases
This can be very difficult to get right.The whole thing seems like a tremendous can of worms.
I think what I'm going to do is allow the user to specify additional functions, such as
This will create a Replace function which can be used just like the existing Insert and Delete functions, if the database supports it. If not, the Replace function will generate a syntax error, as if you had done $dbh->prepare("REPLACE ...");use EZDBI 'Replace';
Trying to emulate REPLACE on databases that don't support that natively seems to be too perilous. The user is still free to write eval { Insert ... } or Update... if they want to.
--
Mark Dominus
Perl Paraphernalia
|
---|