Can GT.M be accessed through a port?

574 views Asked by At

I'm trying to run a GT.M database server in such way that It can be accessed from an application server. I know I can invoke GT.M as a sub-process from other languages. I'm trying to see if I can connect that to a socket/port to be accessed from another server, similar to other database connections(ODBC, MongoDB, Cache).

Are there any utilities? Libraries? to accomplish this. I'm more interested in a mechanistic overview.

2

There are 2 answers

3
C4xuxo On

Have a look at the below link, using this python module you can connect to the DB: https://github.com/fopina/pyfispip.

2
Sam Habiel On

The answer is yes, and you have many ways of doing it:

You can run GTCM, part of GT.M. I don't use it, so I don't know much about it, but David Wicksell built it into the Node.js binding to GT.M. More info here: http://tinco.pair.com/bhaskar/gtm/doc/books/ao/UNIX_manual/ch13s02.html and https://github.com/dlwicksell/nodem. Incidentally, you can use Node.js using David's node module.

You can run an M web server: https://github.com/shabiel/M-Web-Server. Look at the documentation folder for examples. Downside is that you have to write some M code (if you don't know M already). This is intended to be used as a web services platform.

--Sam