unixODBC is an ODBC driver manager for UNIX type environments. Instead of linking an application directly with the solidDB ODBC driver, you can use a unixODBC as your driver manager.
You can also use unixODBC to provide tracing at the ODBC level.
Note For programs that have no native interface to solidDB (for example, Go, Perl, and Python), either use unixODBC or, if performance is not an issue, use HTTP, see solidDB HTTP SQL Access.
The unixODBC driver manager loads the correct data source driver according to the specifications in the following configuration files:
▪ odbc.ini or .odbc.ini: specifies the logical name of the data source and the actual ODBC driver.
The odbc.ini file defines the system-level settings that are available to all users. The .odbc.ini file defines user-level settings.
▪ odbcinst.ini: connects the logical driver name with its physical location in the file system.
The odbcinst.ini is a system-level file.
In addition to these files, the solidDB ODBC driver needs a client-side solid.ini configuration file where the logical data source name is connected with the a valid solidDB connect string.
Syntax of the odbc.ini configuration files
The odbc.ini or .odbc.ini file must include at least the following two items for each data source:
▪ Logical name of the data source inside brackets, for example [solid_ds]
▪ Logical name of the actual ODBC driver to be used by using the syntax:
Driver=driver_name
For example:
Driver=solid_odbc
An additional description can be added by using the syntax:
Description=SolidDB connection
All additional information is ignored.
Syntax of the odbcinst.ini configuration file
The logical name and the physical location of the ODBC driver must be specified in the odbcinst.ini file as follows: