pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedgeneric SQL implementations
2+ messages / 2 participants
[nested] [flat]
* generic SQL implementations
@ 2003-07-07 14:11 Vinay <vinay@mdp.net>
0 siblings, 1 reply; 2+ messages in thread
From: Vinay @ 2003-07-07 14:11 UTC (permalink / raw)
To: pgsql-admin
Has anybody implemented a generic implementation for querying databases during runtime. I am using DAO's for data access layer. But I want to furthur move the database logic to down one more layer of abstraction.I am dealing with different kinds of database (eg. let's say a MySQL, MS Access and another not SQL at all ,index sequential files). I want the DAO to access the database during runtime. So I want my DAO to be independent of the SQL statements.The Database Interfrace would talk to either MySQL,or Oracle or any other database.So that there is no need to have DAO for each database syntax, rather , this should be handled by a API thru an interface.
Here's and examples
Let's say for select statement , we supply table name, column names, where cluase , and's etc
The following method should handle the query
List getSelect(String tablename, List columnnames, List Orderby,.....) etc {
return queryresult
}
Any ideas appreciated
Thank you
Vinay
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: generic SQL implementations
@ 2003-07-07 14:28 Donald Fraser <demolish@cwgsy.net>
parent: Vinay <vinay@mdp.net>
0 siblings, 0 replies; 2+ messages in thread
From: Donald Fraser @ 2003-07-07 14:28 UTC (permalink / raw)
To: pgsql-admin
I believe Borland's database engine (part of Delphi and C++ builder) tried to do this. My experience with it, albeit some years ago now, was that it was extremely slow.
Regards
Donald Fraser
----- Original Message -----
From: Vinay
To: pgsql-admin@postgresql.org
Sent: Monday, July 07, 2003 3:11 PM
Subject: [ADMIN] generic SQL implementations
Has anybody implemented a generic implementation for querying databases during runtime. I am using DAO's for data access layer. But I want to furthur move the database logic to down one more layer of abstraction.I am dealing with different kinds of database (eg. let's say a MySQL, MS Access and another not SQL at all ,index sequential files). I want the DAO to access the database during runtime. So I want my DAO to be independent of the SQL statements.The Database Interfrace would talk to either MySQL,or Oracle or any other database.So that there is no need to have DAO for each database syntax, rather , this should be handled by a API thru an interface.
Here's and examples
Let's say for select statement , we supply table name, column names, where cluase , and's etc
The following method should handle the query
List getSelect(String tablename, List columnnames, List Orderby,.....) etc {
return queryresult
}
Any ideas appreciated
Thank you
Vinay
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-07-07 14:28 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-07 14:11 generic SQL implementations Vinay <vinay@mdp.net>
2003-07-07 14:28 ` Donald Fraser <demolish@cwgsy.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox