SQL in SQL APIs
ESQL products are HCL OneDB™ SQL APIs (application programming interfaces). HCL produces an SQL API for the C programming language.
The converted source program then passes through the programming language compiler. The compiler output becomes an executable program after it is linked with a static or dynamic library of SQL API procedures. When the program runs, the SQL API library procedures are called; they set up communication with the database server to carry out the SQL operations.
If you link your executable program to a threading library package, you can develop multithreaded applications. A multithreaded application can have many threads of control. It separates a process into multiple execution threads, each of which runs independently. The major advantage of a multithreaded application is that each thread can have many active connections to a database server simultaneously. While a nonthreaded application can establish many connections to one or more databases, it can have only one connection active at a time. A multithreaded application can have one active connection per thread and many threads per application.
For more information on multithreaded applications, see the HCL OneDB ESQL/C Programmer's Manual.