Re: Detecting auto-incrementing primary keys
- From: greg@xxxxxxxxxxxx (Greg Sabino Mullane)
- Date: Tue, 1 Jul 2008 19:03:24 -0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
I'm writing a generic database interface, similar to MS Access. Up until...
So, I take it the answer is still 'no'; I can't portably detect this kind
of thing. I'll go back to parsing the output of $dbh->column_info then.
column_info() won't help with with things like triggers. A generic database
abstraction layer (at a higher level than DBI) is a wheel that has been
invented many times over. You might be better served to use one of those,
or at least get some inspirations from them on how to do things. Some
ones that jump to mind are Rose::DB, and Class::DBI. Here's a handy link:
http://www.perlmonks.org/?node_id=504724
HTH,
- --
Greg Sabino Mullane greg@xxxxxxxxxxxx
End Point Corporation
PGP Key: 0x14964AC8 200807011459
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----
iEYEAREDAAYFAkhqfy4ACgkQvJuQZxSWSshMqwCfT1tlAUycrcBwBCSqNsQDCPld
KvYAn0fW+jWAU+Vkniup8dekIHOq1bRb
=1nvP
-----END PGP SIGNATURE-----
.
- Prev by Date: Re: Out of memory error with DBI - DBD::Oracle
- Next by Date: Re: Out of memory error with DBI - DBD::Oracle
- Previous by thread: Re: Out of memory error with DBI - DBD::Oracle
- Next by thread: Re: Detecting auto-incrementing primary keys
- Index(es):