Skip to content

Commit

Permalink
FEAT: ported Nenad's MySQL driver to be compatible with this Rebol3 v…
Browse files Browse the repository at this point in the history
…ersion as a module/scheme

It's just a quick rewrite, which replaces original `debug` function in the protocol with system logging and some of required modifications. There is also minnor change in error reporting. It would deserve better rewrite, but I don't have much need for this, so it's left for future or someone else.

It was tested only with this so far:
```
>> mysql: connect-sql mysql://root:rur@localhost/
 [MySQL] Connected: mysql://root@localhost:3306/
>> send-sql mysql "show databases"
== [["information_schema"] ["mysql"] ["performance_schema"] ["sys"] ["test"]]

>> send-sql mysql "create database test"
** mysql error: [ 1007 ] "Can't create database 'test'; database exists"

>> send-sql mysql "drop database test"
== []

>> send-sql/flat mysql "show databases"
== ["information_schema" "mysql" "performance_schema" "sys"]

>> close mysql
 [MySQL] Closed: mysql://root@localhost:3306/
>>
```
  • Loading branch information
Oldes committed May 27, 2020
1 parent 46810b3 commit 01284d6
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 890 deletions.
1 change: 1 addition & 0 deletions src/include/sys-value.h
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,7 @@ typedef struct Reb_Path_Value {
REBVAL *select; // modified
REBVAL *path; // modified
REBVAL *store; // modified (holds constructed values)
REBSER *setfrm; // modified
REBVAL *setval; // static
REBVAL *orig; // static
} REBPVS;
Expand Down
Loading

0 comments on commit 01284d6

Please sign in to comment.