Skip to content
Discussions/App Development/Connection to IBMi databaseForum ↗

Connection to IBMi database

App Development6 posts354 views6 likesLast activity Mar 2021
TI
Tiziano_SellaOP
Mar 2021

is it possible to connect to db2 for ibmi? and if so how?

BE
bernhard
Mar 2021

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.

TI
Tiziano_Sella
Mar 2021

basically I need to be able to connect a request to db2 ibmi to run a query inside a db2 schema

BE
bernhard
Mar 2021

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.

GA
Gary_Verhaegen
Mar 2021

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.

TI
Tiziano_Sella
Mar 2021

hi gary
thank you

← Back to Discussions