Val is now passed to helpers directly instead of through extra pointer. (#31)

Co-authored-by: Zachary Levy <zachary@sunforge.is>
Reviewed-on: #31
This commit was merged in pull request #31.
This commit is contained in:
2026-06-04 21:50:55 +00:00
parent 6ac41b22f8
commit f2da356580
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ main :: proc() {
data_val: mdb.Val
mdb.panic_on_err(mdb.txn_begin(environment, nil, {}, &txn_handle))
mdb.panic_on_err(mdb.get(txn_handle, db_handle, &key_val, &data_val))
data_cpy := mdb.blittable_copy(&data_val, int)
data_cpy := mdb.blittable_copy(data_val, int)
mdb.panic_on_err(mdb.txn_commit(txn_handle))
fmt.println("Get result:", data_cpy)
}