go to post Dmitry Maslennikov · Jun 26 dispatch class, which just named disp next to impl class, is generated and generated classes are hidden by default and you can show them with a flag in the Server Explorer. But, this class always regenerates, when you compile your spec file. have a look at this example, of how I deal with errors
go to post Dmitry Maslennikov · Jun 26 Another solution is to use getattr classname="%SYSTEM.SYS" methodname="ProcessID" pid = getattr(iris.cls(classname), 'ProcessID')() myerror=iris.cls("%Exception.PythonException")._New("MyOops",123,"def+123^XYZ","SomeData") for propertyname in ["Name","Code","Data","Location"]: print(getattr(myerror, propertyname))
go to post Dmitry Maslennikov · Jun 20 What’s the point of using Python and attempting to keep using ObjectScript functions, find python alternatives Python can do multithreading, do you can process in background
go to post Dmitry Maslennikov · Jun 17 and another way to access terminal through web, is by using ttyd, I use it for irissqlcli-web. ttyd helps to webify any terminal application, it can be bash, or iris session
go to post Dmitry Maslennikov · Jun 17 You did not mention, what package you would like to use in Python to make REST. if it's FastAPI, with this package you can use SQLAlchemy and sqlalchemy-iris Django, with this framework, then just use django-iris In any case, I would recommend looking into SQLAlchemy, and its API, which has many features, of course including the way to list tables, as well as list columns in tables, and lots of other features. If you are going to use some other package for making REST API, and this library does not support SQLAlchemy, let me know, I'll have a look, and may implement IRIS for this library too.
go to post Dmitry Maslennikov · Jun 16 Looks like the database was created with a different collation, and contains a few globals with this collation. I don't remember, but I think in the messages.log it should show which collation is expected. And then, you can change it in Management Portal, and with NLS. When you activate NLS which contains the expected collation, it will be able to mount this database.
go to post Dmitry Maslennikov · Jun 15 This part I can do, but, I don't think we should even consider it. This is part of IRIS SQL Dialect, and it's not good when some SQL queries may not work with different connections, e.g. using JDBC, or SMP.
go to post Dmitry Maslennikov · Jun 9 It looks like there is something wrong with an instance. And It would require some more details, such as the exact version, edition, and the way how it was installed. And just check it manually if HSSYS is present in the system, as well as HSLIB with databases, and all databases are accessible too.
go to post Dmitry Maslennikov · Jun 9 I think it depends on what type of application you have on IRIS. If it's just some frontend application, then there is a variety of projects to do this task, as it is not much related to IRIS What exactly do you want to test?
go to post Dmitry Maslennikov · May 25 Creating an Index with SQL, not directly in ObjectScript, will build Index by default if you don't say do not do it.
go to post Dmitry Maslennikov · May 21 Well, most probably IRIS there running in a container, and you are looking at the wrong place. Inside the container, from IRIS, there will be /usr/irissys, outside it will be somewhere else
go to post Dmitry Maslennikov · May 16 No it's just randomly can output errors, and output just nothing
go to post Dmitry Maslennikov · May 15 It's the compilation log in VSCode, why should I even try this way?
go to post Dmitry Maslennikov · May 14 with zpm you can use additional parameter for it zpm "test module-name -only -D UnitTest.Case=Test.PM.Unit.CLI:TestParser" Use class name only to run all tests there, or add Method name to test only that method in the class
go to post Dmitry Maslennikov · May 14 There are no reasons for them to be ClassMethods, UnitTests is quite a complex thing, and it's there are use-cases where it needs to be this way.
go to post Dmitry Maslennikov · May 13 VSCode has a way to help with running tests, but it requires implementing from our side