But it is a bit more interesting on VMS as a driver for VMS is not a top priority for most language projects and database vendors. But the
database vendors usually provide a type 4 JDBC driver. A type 4 JDBC
driver is a pure Java JDBC driver, which means that you can copy the jar
file from Linux/Windows to VMS and it works.
On Sun, 19 Jan 2025 14:35:07 -0500, Arne Vajhøj wrote:
But it is a bit more interesting on VMS as a driver for VMS is not a top
priority for most language projects and database vendors. But the
database vendors usually provide a type 4 JDBC driver. A type 4 JDBC
driver is a pure Java JDBC driver, which means that you can copy the jar
file from Linux/Windows to VMS and it works.
If they have a client library for C, say, then you should be able to
create a pure-Python wrapper around it using ctypes.
... then it does not even run on VMS - it has to run on Linux or
Windows.
On Sun, 19 Jan 2025 19:47:46 -0500, Arne Vajhøj wrote:
... then it does not even run on VMS - it has to run on Linux or
Windows.
Imagine if VSI had followed the strategy I suggested those years ago, to simply get rid of the VMS kernel, keeping just DCL and the userland APIs,
and reimplementing those on top of Linux. So many vistas would be open now that are otherwise shut.
PJBridge.php is very simple so it was easy to convert to Python:
Python app with PJBridge class-->proxy process with JDBC driver-->database
And I even created a DB API 2.0 layer on top of it to be more Pythonesque:
Python app with PJBS and PJBridge classes-->proxy process with JDBC driver-->database
And it seems to work reasonable well.
If anyone want to play with it then it is available at:
 https://www.vajhoej.dk/arne/vmsstuff/pjbs/
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 437 |
Nodes: | 16 (2 / 14) |
Uptime: | 194:19:45 |
Calls: | 9,135 |
Calls today: | 2 |
Files: | 13,432 |
Messages: | 6,035,425 |