Database independent code



Hello,

I need to implement some database access in my code, and my knowledge of
databases is pretty basic (mostly MySQL ans flat un-indexed tables). Can
somebody point me to advanced tutorials on database independent code? For
example I can't find a way to tell what methods from DBI and family can I
use without concern that the code will break if tomorrow the database engine
will have to change.
Also I am trying to figure out what is the most commonly accepted way of
storing complex data structures like arrays-of-hashes-of-hashes-of... in
databases. The first thing that comes to my mind is describing the entire
branch in each table row, in other words working the enumeration back to the
root of the structure, ordering the rows accdording to key and array index
occurences. This however does not seem very efficient as far as table size
management goes. Some preliminary searching turned up a possibility of
storing XML as table data which also seems too inefficient to me.
So anyway, if someone could share a good reading on the subject that he came
upon would be most helpful.

Thanks

Peter
.



Relevant Pages

  • Re: Client library for Oracle on linux
    ... portability is one requirement. ... it seems that oracle only supports Windows ODBC? ... Currently I develop an application that access Oracle's database using ... program that would do database access in a generic way, ...
    (comp.databases.oracle.misc)
  • Re: Client library for Oracle on linux
    ... portability is one requirement. ... it seems that oracle only supports Windows ODBC? ... Currently I develop an application that access Oracle's database using ... program that would do database access in a generic way, ...
    (comp.databases.oracle.misc)
  • Re: BDS vs. Turbo -- clear definition?
    ... they all need database access. ... DDD then ECO is a wash for them since it cannot write to these local DB ... SKUs of the Developer Studio. ...
    (borland.public.delphi.non-technical)
  • Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
    ... It is designed around a completely different design philosphy to be ... database access techniques used in DotNetNuke (a vb.net project ... time to create the proxy service itself and ensure it performs well ...
    (borland.public.delphi.non-technical)
  • Changing security fixes hang problem temporarily
    ... I created a DLL in VB6 that handles all the database access for some ASP ... writes it to a folder on the server, then displays it in a browser. ... It appears that anytime I change the permissions, it starts to work, but it ...
    (microsoft.public.inetserver.asp.general)