PostGreSQL : are you interested in a wrapper for PB4 ?

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

PostGreSQL : are you interested in a wrapper for PB4 ?

Post by Flype »

at work, i'll migrate our SGBDR from MySQL to PostGreSQL.
since purebasic use ODBC it should be easy.

i would like to make a wrapper for the 'libpq.dll'.

maybe some of you might be interested.

http://www.postgresql.org/
Last edited by Flype on Sat Jun 17, 2006 9:51 am, edited 1 time in total.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

well, i'm suprised because it was not too hard.

so i made a PostgreSQL 8.1 wrapper for PB4.

works ok at home, but still in beta stage.

grab it here :
http://www.purebasic.fr/english/viewtop ... highlight=
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

just a little information that i didn't know:

Oracle Announces the Acquisition of PostgreSQL to improve it and keep it open-source :
http://www.postgresqlfr.org/files/oracle.html
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

THanks flype it sure will be usefull :o
z3phir2003
User
User
Posts: 49
Joined: Wed Jan 12, 2005 3:50 pm

great job 10x

Post by z3phir2003 »

great job 10x for releasing the code
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Yes, i hope it will be useful for pbusers.

Also, i think i will make a wrapper for the FireBird 1.5 SGBDR
as it is provided with a SDK, it should be as easy as MySQL 5 and PostgreSQL 8.1.
http://www.firebirdsql.org

I think we (pb-users) can bring to PureBasic 4.0 a collection
of ready-to-use SGBDR wrappers for the communauty making purebasic a little more professional.

Just an idea, if i understood well the subsytem functionality of purebasic, it should be possible to implement subsystems for Native ODBC / MySQL / PostgreSQL / FireBird / SQLite / Tsunami / and so on, with the advantage of using native database commands. Do you think it is do-able ?

It must be a good think even if the ODBC is also a simple and good way.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Yes, the subsystem idea is the way to go, you just have create a new directory in Subsystems\ named 'MySQL' and put the new Database lib in it. Then specifified 'MySQL' in the subsystem field and it should work ;).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

thanks fred,
and should i program the new database.lib in C/C++
or can it be done with TailBite ?

what's happened if all native commands are not implemented ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It can be done with Tailbite, it's just a regular purelibrary. If you don't implement all the commands of the original lib, then the compiler with tells 'This function isn't a command, macro etc..' as the original lib is simply ignored.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Hi Flype.

Thanks for this. :)
Dare2 cut down to size
User avatar
blueb
Addict
Addict
Posts: 1111
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Post by blueb »

Thanks Flype.

Having various database tools at our disposal should really help to make PureBasic noticed in the programming community.


Thanks again,
--blueb
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Post Reply