In my linked-in driver fork of sqlite3 driver, NIF function is absolutely unusable, because sqlite3 library will block calling process, thus all functions are executed in async thread. But linked-in driver is harder to implement.