From vinay@mdp.net Mon Jul 7 14:17:27 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 20D32B43368 for ; Mon, 7 Jul 2003 14:17:27 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 92121-04 for ; Mon, 7 Jul 2003 11:17:15 -0300 (ADT) Received: from mail.mdp.net (mail.mdp.net [207.89.166.195]) by svr1.postgresql.org (Postfix) with ESMTP id BD297B4388C for ; Mon, 7 Jul 2003 11:17:10 -0300 (ADT) Received: from vinay [65.88.169.22] by mail.mdp.net (SMTPD32-6.06) id ACE62010C; Mon, 07 Jul 2003 10:00:06 -0400 Message-ID: <00d001c34491$ad905590$157a40c0@vinay> From: "Vinay" To: Subject: generic SQL implementations Date: Mon, 7 Jul 2003 10:11:36 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00CD_01C34470.262DAF60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-RBL-Warning: REVDNS: This E-mail was sent from a MUA/MTA 65.88.169.22 with no reverse DNS entry. X-Declude-Sender: vinay@mdp.net [65.88.169.22] X-Declude-Spoolname: D7ce610c.SMD X-Note: This E-mail was scanned by DCC JunkMail (www.dataconstructs.com) for spam. X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/68 X-Sequence-Number: 9409 This is a multi-part message in MIME format. ------=_NextPart_000_00CD_01C34470.262DAF60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Has anybody implemented a generic implementation for querying databases dur= ing runtime. I am using DAO's for data access layer. But I want to furthu= r move the database logic to down one more layer of abstraction.I am dealin= g with different kinds of database (eg. let's say a MySQL, MS Access and an= other 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 sta= tements.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 s= yntax, 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 }=20=20 Any ideas appreciated Thank you=20 Vinay ------=_NextPart_000_00CD_01C34470.262DAF60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Has anybody implemented a generic implemen= tation=20 for querying databases during runtime. I am  using  DAO's for dat= a=20 access layer. But I want to furthur move the database logic to down on= e=20 more layer of abstraction.I am dealing with different kinds of database (eg= .=20 let's say a MySQL, MS Access and another not SQL at all ,index sequential= =20 files). I want the DAO to access the database during runtime. So I want my = DAO=20 to be independent of the SQL statements.The Database Interfrace would talk = to=20 either MySQL,or Oracle or any other database.So that  there is&nb= sp;no=20  need to have  DAO for each database syntax, rather , t= his=20 should be handled by a API thru an interface.
 
Here's and examples
 
Let's say for select statement , we supply= table=20 name, column names, where cluase , and's etc
 
The following method should handle=20 the query
 
List getSelect(String tablename, List=20 columnnames, List Orderby,.....) etc {
 
 
return queryresult
}  
 
 
Any ideas appreciated
Thank you
Vinay
------=_NextPart_000_00CD_01C34470.262DAF60-- From demolish@cwgsy.net Mon Jul 7 14:26:10 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id F2BFAB43368 for ; Mon, 7 Jul 2003 14:26:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 95372-04 for ; Mon, 7 Jul 2003 11:25:59 -0300 (ADT) Received: from gsy_sbs_1.cisx.com (unknown [213.133.202.58]) by svr1.postgresql.org (Postfix) with ESMTP id 77F10B43183 for ; Mon, 7 Jul 2003 11:25:58 -0300 (ADT) Received: from DEMOLITION ([192.168.100.22]) by gsy_sbs_1.cisx.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 33CH3GY3; Mon, 7 Jul 2003 15:17:14 +0100 Message-ID: <009b01c34494$09526830$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" References: <00d001c34491$ad905590$157a40c0@vinay> Subject: Re: generic SQL implementations Date: Mon, 7 Jul 2003 15:28:24 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0098_01C3449C.6827C690" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/69 X-Sequence-Number: 9410 This is a multi-part message in MIME format. ------=_NextPart_000_0098_01C3449C.6827C690 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 w= as extremely slow. Regards Donald Fraser ----- Original Message -----=20 From: Vinay=20 To: pgsql-admin@postgresql.org=20 Sent: Monday, July 07, 2003 3:11 PM Subject: [ADMIN] generic SQL implementations Has anybody implemented a generic implementation for querying databases d= uring runtime. I am using DAO's for data access layer. But I want to furt= hur move the database logic to down one more layer of abstraction.I am deal= ing 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 t= he database during runtime. So I want my DAO to be independent of the SQL s= tatements.The Database Interfrace would talk to either MySQL,or Oracle or a= ny 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, wher= e cluase , and's etc The following method should handle the query List getSelect(String tablename, List columnnames, List Orderby,.....) et= c { return queryresult }=20=20 Any ideas appreciated Thank you=20 Vinay ------=_NextPart_000_0098_01C3449C.6827C690 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I believe Borland's database engine (part = of Delphi=20 and C++ builder) tried to do this. My experience with it, albeit some years= ago=20 now, was that it was extremely slow.
 
Regards
Donald Fraser
----- Original Message -----
Fro= m:=20 Vinay
Sent: Monday, July 07, 2003 3:11 P= M
Subject: [ADMIN] generic SQL=20 implementations

Has anybody implemented a generic implem= entation=20 for querying databases during runtime. I am  using  DAO's for d= ata=20 access layer. But I want to furthur move the database logic to down = one=20 more layer of abstraction.I am dealing with different kinds of database (= eg.=20 let's say a MySQL, MS Access and another not SQL at all ,index sequential= =20 files). I want the DAO to access the database during runtime. So I want m= y DAO=20 to be independent of the SQL statements.The Database Interfrace would tal= k to=20 either MySQL,or Oracle or any other database.So that  there=20 is no  need to have  DAO for each database syntax,=20 rather , this should be handled by a API thru an=20 interface.
 
Here's and examples
 
Let's say for select statement , we supp= ly table=20 name, column names, where cluase , and's etc
 
The following method should handle=20 the query
 
List getSelect(String tablename, List=20 columnnames, List Orderby,.....) etc {
 
 
return queryresult
}  
 
 
Any ideas appreciated
Thank you
Vinay
------=_NextPart_000_0098_01C3449C.6827C690--