OPL database support examples

These examples show how to use OPL database support

In OPL, there are prebuilt database connection types for JDBCConnection, CSVConnection, ODBCConnection, MySQLConnection, and SQLiteConnection. In addition, you can build a custom database connection type. The following examples show how to use this functionality:

  • <Install_dir>\opl\examples\opl\foodcsv\foodcsv.dat
  • <Install_dir>\opl\examples\opl_interfaces\libopltabODBC.c
  • <Install_dir>\opl\examples\opl_interfaces\libopltabMySQL.c
  • <Install_dir>\opl\examples\opl_interfaces\libopltabSQLite.c

For more information, see the User's Manual section Database support.