janvladimirmostert
09/25/2016, 6:12 PMJDBC
The comsat-jdbc project makes the JDBC API more efficient when using Quasar fibers (or fiber-backed actors). To use JDBC in fibers, simply wrap your database driver’s DataSource with FiberDataSource, and use it to obtain connections. For example:
It also appears that if you’re going to use fibers, it’s all or nothing, once you start using fibers to improve JDBC, you can’t use that data-source with any other ORM-like framework
Note: Your application may only make direct use of the Comsat JDBC data source, because methods calling the API must be declared suspendable (or run on regular threads). Database access frameworks (like various ORM solutions) that make use of JDBC cannot use this data source and be used in Quasar fibers. In the future, we will provide separate integration module for some popular database access libraries.