Once everything is in place, let’s see how we write a simple program which does only one thing – connects to a CUBRID database. For simplicity, let’s assume we want to connect to a local CUBRID installation, in particular to the well-known demodb database.

As you can see, it is very easy to work with the driver functions model – they follow the standard database logic model you know from other database drivers. The only particular thing, which is specific to node.js, is the callbacks/events model. If you need or want to read more about it, we recommend starting with the following online resources: