is it possible to connect to db2 for ibmi? and if so how?
Hi @Tiziano_Sella , welcome to the Daml forums.
Could you be a bit more specific what you are trying to connect to a db2 database? Are you looking for a Daml Ledger integration that runs on db2, or are you looking to run runtime components with db2 backing?
Currently our entire stack is designed to run on PostgreSQL databases in the community edition, and we have Oracle DB support in the works for the Enterprise Editions. So the answer in the short run is likely “no” either way. However, if you are seriously interested in db2 support, let’s have a conversation about your use-case.
basically I need to be able to connect a request to db2 ibmi to run a query inside a db2 schema
You can easily integrate a Daml ledger with a db2 database if that’s what you have in mind. For example, use the Java Ledger API Bindings to connect to a ledger and then run your db2 queries from Java.
Hi @Tiziano_Sella,
Daml code itself cannot connect to anything but the Daml Ledger. If you need to cross-reference your Daml Ledger with another database, you will have to write a separate application that does that. We provide a JSON API that should work from most languages, as well as a gRPC API.
As gRPC is a bit more involved, we provide language bindings to ease interactions through that, but only for the Java language.
hi gary
thank you