Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
I would like to use multiple ODBC connectors to read and transmit data from different tables in the same database. This is currently not possible in the current version if the column names providing the iterator in all the tables are same. In most real time cases it is possible that there exists some primary-key columns and possibly with same names across several tables in database. It is possible to uniquely identify the iterator using its name in the code. Since there has to be a uniquely named connector for every connection, using the connector name when hashing can generate uniquely identifiable iterator file name.
I would like to use multiple ODBC connectors to read and transmit data from different tables in the same database. This is currently not possible in the current version if the column names providing the iterator in all the tables are same. In most real time cases it is possible that there exists some primary-key columns and possibly with same names across several tables in database. It is possible to uniquely identify the iterator using its name in the code. Since there has to be a uniquely named connector for every connection, using the connector name when hashing can generate uniquely identifiable iterator file name.
Please find the patch below how I did this.