dbc - legacy module - search and replace during import
This one module we have seen some Iguana customers use. It was deprecated and replaced by having a database connection object with methods with the same names which is better. See:
https://help.interfaceware.com/code/details/dbc-lua-pre-5-5-1
It's best to replace this with the use of the database connection object. I tried out a technique of modifying the channel importer to find dbc.Connection and replace it with db.connect
![]()
The logic happens in this file:
https://bitbucket.org/interfaceware/iguanaconverter/src/main/CHAN/CHANLuaProcess.lua
This function gets called for each Lua file in a project so one can replace function calls etc. across entire projects in one place.
The logic here removes require calls to dbc in the format used by one customer and removes the content of dbc.lua.
It logs what it does.
Incidentally ( characters are special in Lua matching rules so I had to escape them using %( etc.