pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Donald Fraser <demolish@cwgsy.net>
To: [ADMIN] <pgsql-admin@postgresql.org>
Subject: Re: generic SQL implementations
Date: Mon, 7 Jul 2003 15:28:24 +0100
Message-ID: <009b01c34494$09526830$1664a8c0@DEMOLITION> (raw)
References: <00d001c34491$ad905590$157a40c0@vinay>

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

view thread (2+ messages)

Message-ID: <009b01c34494$09526830$1664a8c0@DEMOLITION>
Permalink:  ../009b01c34494$09526830$1664a8c0@DEMOLITION/
Also on:    postgresql.org/message-id/009b01c34494$09526830$1664a8c0@DEMOLITION

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: demolish@cwgsy.net
  Subject: Re: generic SQL implementations
  In-Reply-To: <009b01c34494$09526830$1664a8c0@DEMOLITION>
  References: <00d001c34491$ad905590$157a40c0@vinay> <009b01c34494$09526830$1664a8c0@DEMOLITION>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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