The db module contains the Iguana Translator script functions that interact with databases. Functions exist to create local database tables, merge them with external databases, and perform queries on external databases.

All the database functions:

It is recommended best practice to use the new style database methods. They are easier to use and offer improved database transaction handling.

Advantages of the new style connection objects:

Note: it is important to understand the behaviour of the live flag for db.connect  and how it affects the execution the new style database methods in the Iguana editor:

For more information on how Iguana Translator scripts work with databases, see Mapping To/From Databases.