1 import assert from 'assert'
2 import Transaction from './Transaction.mjs'
3 import logjson from './index.mjs'
6 constructor(transaction, ptr_len) {
7 assert(transaction instanceof Transaction)
8 this.transaction = transaction
9 this.ptr_len = ptr_len || null
13 throw new Error('not implemented')
16 async get(key, default_value) {
17 throw new Error('not implemented')
20 async get_json(key, default_value) {
21 return /*await*/ logjson.logjson_to_json(
22 await this.get(key, default_value)
27 throw new Error('not implemented')
30 set_json(key, value) {
31 this.set(key, this.transaction.json_to_logjson(value))
35 throw new Error('not implemented')
39 throw new Error('not implemented')
43 export default LazyValue