Can the python interface be used to directly access and iterate through an intersystems cache global, or does python simply expose the same “tables” I see when I use a linked server or ODBC Connection?
Can the python interface be used to directly access and iterate through an intersystems
Share
If you want to directly access globals you can create a stored procedure that will do so. You should consider the security implications before you do this – it will expose all data in the global to anyone with ODBC access.
Here is an example of a stored procedure that returns the values of up to 9 global subscripts, plus the value at that node. You can modify it pretty easily if you need to.
To access this from python you might use (with pyodbc):