With
nim-yottadb, YottaDB welcomes an API for access from the modern
Nim programming language. With its Domain Specific Language feature, you can write code like:
setvar:
^XX(1,2,3)=123
^XX("B",1)="AB"
Templates allow you to write code that removes the need to worry about unreleased locks:
let amount = 1500.50
withlock(4711):
setvar:
^custacct(4711, "amount") = amount
^booking(4711, "txnbr") = amount
As with other native APIs to YottaDB, processes executing Nim code can
concurrently execute with processes executing code written in other
languages, sharing a database. We thank YottaDB community member Lothar
Jöckel for this important contribution. He has blogged about it at
Nim Meets YottaDB.
Please try nim-yottadb and tell us what you think. Thank you.
Regards
- Bhaskar