Re: Database Independance
From: Dennis Landi ([none][at][none][dot][com])
Date: 03/05/04
- Next message: Don Strenczewilk: "Re: Straw poll - naming conventions"
- Previous message: Andrew Rybenkov: "Re: Straw poll - naming conventions"
- In reply to: Xavier Pacheco (Xapware): "Database Independance"
- Next in thread: Michael Lehrman: "Re: Database Independance"
- Reply: Michael Lehrman: "Re: Database Independance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 4 Mar 2004 19:28:28 -0500
"Xavier Pacheco (Xapware)" <xavier@spamlessxapware.com> wrote in message
news:4047ac55$1@newsgroups.borland.com...
>
> I'd like to get a collection of practices that one should take when
> writing a Delphi application and where you desire database independance
> with SQL database. What are some things to avoid? Some things to do?
>
> for instance
>
> 1. Don't use long table names (Interbase/Firebird has a limit on the
> tablename length).
>
> 2. Stick with a specific case on metadata
>
> that sort of stuff. Comments?
Put a broker between you SQL Server implementation and your application
logic.
App << >> Broker << >> SQL_Server_?
Now you Application Logic is insulated from your backend implementation
altogether...
Make you broker interface-based so that you can swap in a Broker_Version for
specific back-end when necessary while still serving up to the app your
IBroker interface when requested....
Put your interfaced broker in an interfaced run-time package (plug-in) for
extra credit.... <g> Then its ready for deployment in, say, a
shrink-wrapped enterprise product that needs to target any number of
commercial backends...
-d
- Next message: Don Strenczewilk: "Re: Straw poll - naming conventions"
- Previous message: Andrew Rybenkov: "Re: Straw poll - naming conventions"
- In reply to: Xavier Pacheco (Xapware): "Database Independance"
- Next in thread: Michael Lehrman: "Re: Database Independance"
- Reply: Michael Lehrman: "Re: Database Independance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|