This page describes the old style database functions. Functions exist to create local database tables, merge them with external databases, and perform queries on external databases.
Note: we recommend you use the new style database methods. They are easier to use and offer improved database transaction handling.
For more information on how Iguana Translator scripts work with databases, see Mapping To/From Databases.
In Iguana 5.0.14 a bug was fixed when 0 or "" (empty string) was returned from a database as a NULL value - now 0 and "" are returned correctly.
Starting with Iguana 5.0.9, every function in the db namespace in Translator scripts now accepts a "use_unicode" flag that allows you to control whether or not database connections from Iguana are configured to use Unicode. This flag may be necessary if you are dealing with information that contains international characters.
The "use_unicode" flag is set to false by default in order to maintain backwards compatibility with older versions of Iguana 5.0.x
Supported Database | Database code to use with the api parameter |
My SQL | db.MY_SQL |
Oracle OCI | db.ORACLE_OCI |
Oracle ODBC | db.ORACLE_ODBC |
SQL Lite | db.SQLITE |
Microsoft SQL Server | db.SQL_SERVER |
Postgres | db.POSTGRES |
DB2 | db.DB2 |
Informix | db.INFORMIX |
Interbase | db.INTERBASE |
Filemaker | db.FILEMAKER |
Sybase ASA | db.SYBASE_ASA |
Sybase ASE | db.SYBASE_ASE |
MS Access | db.ACCESS |