[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-sql
Subject:    [SQL] Object based Query Requirement.
From:       "Anagha Joshi" <ajoshi () nulinkinc ! com>
Date:       2003-06-26 8:14:39
[Download RAW message or body]

Hi,
I use Postgres-7.2.4. and my client is in C++
I need to know the following:
As I user libpq++ library, I have to pass the query in the string format
only. i.e.'const  char *'
Does Postgres support object based query? i.e. User should make the
object of some query class (supported by Posstgres) and just sets
predicates, fields, table names by invoking proper member functions of
the same object. Then calls the member function like 'executeQuery' or
so of the same object.

Is there any way to do this?
Thx.,
Anagha





[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>Object based Query Requirement.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Hi,</FONT></SPAN><SPAN \
LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">I use Postgres-7.2.4. and \
my client is in C++</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">I need to know the \
following:</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">As I \
user</FONT></SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN LANG="en-us"><B> <FONT \
SIZE=2 FACE="Arial">libpq++</FONT></B></SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN \
LANG="en-us"><B><FONT SIZE=2 FACE="Arial"></FONT></B></SPAN><SPAN \
LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT SIZE=2 \
FACE="Arial">li</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT \
SIZE=2 FACE="Arial">brary, I have to pass the query in the string format only. \
i.e.</FONT></SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN LANG="en-us"><B><FONT SIZE=2 \
FACE="Arial">&#8217;</FONT></B></SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN \
LANG="en-us"><B><FONT SIZE=2 FACE="Arial">const&nbsp; char *</FONT></B></SPAN><SPAN \
LANG="en-us"><B></B></SPAN><SPAN LANG="en-us"><B><FONT SIZE=2 \
FACE="Arial">&#8217;</FONT></B></SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN \
LANG="en-us"><B></B></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">D</FONT></SPAN><SPAN \
LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">oes Postgres support \
object based query? i.e. User should make the object of some query \
class</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT SIZE=2 \
FACE="Arial">(supported by Posstgres)</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN \
LANG="en-us"> <FONT SIZE=2 FACE="Arial">and just</FONT></SPAN><SPAN \
LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT SIZE=2 \
FACE="Arial">sets</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT \
SIZE=2 FACE="Arial">predicates, fields, table names</FONT></SPAN><SPAN \
LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"> by invoking proper \
member functions of the same object.</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN \
LANG="en-us"><FONT SIZE=2 FACE="Arial"> Then calls the member function \
like</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT SIZE=2 \
FACE="Arial">&#8216;</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT \
SIZE=2 FACE="Arial">executeQuery</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN \
LANG="en-us"><FONT SIZE=2 FACE="Arial">&#8217;</FONT></SPAN><SPAN \
LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"> or so of the same \
object.</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Is there any way to do \
this?</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Thx.,</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Anagha</FONT></SPAN><SPAN \
LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P> <BR>
<BR>
<BR>

</BODY>
</HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic