Question

I am looking at doing some work with Rebol3 and PostgreSQL and trying to plan my approach. It looks like I have the following options:

  1. ODBC access.

  2. Write my own driver

  3. Maybe there is an existing one that would work.

ODBC access looks like the simplest way forward, but the native PostgreSQL drivers offer some features that are not available there that I would prefer to use. This leads me to writing my own driver or trying to use the old pure rebol driver from 2003.

A lot of rebol 2 code does not work on rebol 3 and so I would assume that the PostgreSQL driver would require some effort to make work at all, and some more effort to use the more recent protocols for PostgreSQL. I am guessing this will not be too hard?

My goal is to create some frameworks for quickly and easily tying stored procedures to the front end, to bring some of the better features of some of the rest of my work to Rebol applications. What do folks think is the best way forward here?

Was it helpful?

Solution

Currently there is no Rebol 3 PostgresSQL driver. The Rebol 2 driver is quite concise so migrating it to Rebol 3 might be an option. If you are interested in updating the Rebol 2 one then you will find this tutorial by Graham Chiu very useful:

https://github.com/gchiu/rebol.net/blob/master/docs/Writing_a_Network_Scheme.adoc

@rebolek has also written a Redis protocol which may serve as a useful reference:

https://github.com/rebolek/prot-redis

To the best of my knowledge the most recent Rebol 2 version is here:

http://softinnov.org/rebol/pgsql.shtml

The author of the Rebol 2 PostgresSQL driver is still active in the community (and is now developing the Red language) so he may be able to help with support and suggestions. Come and visit us over in the Stack Overflow Rebol and Red chat room and hopefully we can offer further help.

https://chat.stackoverflow.com/rooms/291/rebol-and-red

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top