Unix Technical Forum

Can Clipper connect Postgresql

This is a discussion on Can Clipper connect Postgresql within the pgsql Novice forums, part of the PostgreSQL category; --> Hello I have an old Clipper 5.1 based application. I would like to change dbase to postgresql without change ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:31 PM
=?iso-8859-1?q?Mester=20J=F3zsef?=
 
Posts: n/a
Default Can Clipper connect Postgresql

Hello

I have an old Clipper 5.1 based application.
I would like to change dbase to postgresql without
change program's businsess logic only database
connect.
Is it possible?

Joe








__________________________________________________ _________
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 08:31 PM
Frank Bax
 
Posts: n/a
Default Re: Can Clipper connect Postgresql

At 05:27 AM 2/23/05, Mester József wrote:
>I have an old Clipper 5.1 based application.
>I would like to change dbase to postgresql without
>change program's businsess logic only database
>connect.
>Is it possible?



Maybe.

Clipper itself cannot, but you might still be able to find/get a 3rd party
package/library which provides this functionality.

You might also try looking at the Harbour Project:
http://www.harbour-project.org/
Harbour is a free cross-platform compiler for Clipper code. Join their
mailing list and ask your question there. I played with it a few years ago,
but I had no serious need for it.


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 08:32 PM
William Yu
 
Posts: n/a
Default Re: Can Clipper connect Postgresql

Even if you could connect to a Postgresql database, you would still have
to rewrite a lot of code. Clipper like other xBase environments have a
slew of commands that have no analog in SQL.

Your best bet would be to port the code to run under Visual FoxPro.
FoxPro should run 95% of Clipper code w/o issue. Use ODBC to connect to
Postgresql. Then find a few strategic places to add in code to retrieve
tables into cursors (FoxPro cursors) that match the names of the
previous DBF tables. And a few places that update tables based on the
changes to the cursor.


Mester József wrote:
> Hello
>
> I have an old Clipper 5.1 based application.
> I would like to change dbase to postgresql without
> change program's businsess logic only database
> connect.
> Is it possible?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com