[REBOL] MySQL driver (native)
From: m::koopmans2::chello::nl at: 18-Apr-2001 13:22
Hi all,
I have used Command 1.0 to develop a mapping to the mysql library, something
that you can use very easily from Command or a Pro versions.
The main reasons to do it this way instead of the native Rebol way:
- Speed of the native libs (depends on the network as well)
- Protocols change, I don't want to that myself.
- The API has already built-int support for some handy stuff: ping, database
error handling etc.
I will add more to the interface.
So that's why when Doc Kimbel already has a rebol native driver. And it is
good to be
able to do it two ways :) Some things will be definitely be faster using the
c libs, while being able to run it on any Rebol platform (Doc's solution) is
an option as well.
You can download the script at www.erebol.com (or .org or .net) for free
(MIT license, which is even less restrictive than BSD, which is less
restrictive than the GPL).
This should motivate people to buy pro :) [Really, you should. It adds great
value and you support this brilliant work for a low price]
There is one limitiation: due to the nature of the free command (free
doesn't free memory that is allocated outside of Rebol) memory may get
exhausted if you do a lot of queries. This will be fixed in Command 2.0, I
have been told.
There is some other stuff on erebol as well:
- erebol: "embedded rebol" , a preprocessor for Rebol Server Pages. Who
needs PHP, JSP or ASP (Ralph are you out there?) I have a sample config for
Apache
to be able to serve .rhtml files.
- Design by contract. This defines a contract definition:
a: contract [ b c ] [ pre [ [ b > 0] ] post [[ c < 0 ]] [ d ]
[
;d is a local
do something useful here
]
All of this I / we am/are using in some major legue commercial projects (I
work at a very large bank-insurance company in Europe), so that's why you
can consider it reasonably tested.
I have erebol hosted as a service to the Rebol community (yes, I pay for
this, but it seemed a good idea to do something back). If you have good
scripts that you want to publish there (under the MIT license, see
www.opensource.org) you can mail them and I'll put it there.
Thanks,
Maarten Koopmans