Giuseppe e55f039788
Go binding: fix bug with R/O transaction destroyed before futures, add GC references for db/tx (#11611)
* Go binding: fix bug with R/O transaction destroyed before futures, add GC references for db/tx

In a previous PR the R/O transaction was optimized and the finalizer was removed; however this prevents using
any future, since transaction is already destroyed by the time future is attempted evaluation.

Additionally, a new issue is uncovered and addressed: the Go Database, Transaction and Future objects are all
garbage-collected independently, which is incorrect because Database and Transaction must not be garbage-collected
if any future has not yet been garbage-collected.

* Go binding: add test for future evaluated outside of R/O transaction
2024-09-06 11:31:07 -07:00
..
2024-08-02 09:40:11 -07:00