The details are here.
Just like any other data base you have to use open and close predicates which are often best used with setup_call_cleanup/3.
setup_call_cleanup(
rdb_open(Rocksdb_directory,RocksDB),
load_records,
rdb_close(RocksDB)
)
After that it is pretty much the same as regular Prolog. Just don’t abort out without using rdb_close/1 as it leaves the RocksDB in an inconsistent state. It can be fixed but I can’t recall the details off the top of my head any more but it is something you definatly want to avoid.
The code is only a proof of concept so much is missing and none of it is optimized.
If you get that working then you are at the same place as the other 3 of us (Jan, Peter and myslef).