diff --git a/classes/blockstore_core.base.BaseBlockstore.html b/classes/blockstore_core.base.BaseBlockstore.html index 14719319..4690e968 100644 --- a/classes/blockstore_core.base.BaseBlockstore.html +++ b/classes/blockstore_core.base.BaseBlockstore.html @@ -1,4 +1,4 @@ -
Optional
options: AbortOptionsawait store.delete(new Key('awesome'))
console.log('deleted awesome content :(')
-Remove values for the passed keys
+Remove values for the passed keys
Optional
options: AbortOptionsconst source = [new Key('awesome')]
for await (const key of store.deleteMany(source)) {
console.log(`deleted content with key ${key}`)
}
-Retrieve the value stored under the given key
+Retrieve the value stored under the given key
Optional
options: AbortOptionsconst value = await store.get(new Key('awesome'))
console.log('got content: %s', value.toString('utf8'))
// => got content: datastore
-Extending classes should override query
or implement this method
Optional
options: AbortOptionsRetrieve values for the passed keys
+Extending classes should override query
or implement this method
Optional
options: AbortOptionsRetrieve values for the passed keys
Optional
options: AbortOptionsfor await (const { key, value } of store.getMany([new Key('awesome')])) {
console.log(`got "${key}" = "${new TextDecoder('utf8').decode(value)}"`')
// => got "/awesome" = "datastore"
}
-Check for the existence of a value for the passed key
+Check for the existence of a value for the passed key
Optional
options: AbortOptionsconst exists = await store.has(new Key('awesome'))
if (exists) {
console.log('it is there')
} else {
console.log('it is not there')
}
-Store the passed value under the passed key
Optional
options: AbortOptionsawait store.put([{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }])
-Store the given key/value pairs
+Store the given key/value pairs
Optional
options: AbortOptionsconst source = [{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }]
for await (const { key, value } of store.putMany(source)) {
console.info(`put content for key ${key}`)
}
-Remove values for the passed keys
+Remove values for the passed keys
Optional
options: AbortOptionsconst source = [new Key('awesome')]
for await (const key of store.deleteMany(source)) {
console.log(`deleted content with key ${key}`)
}
-Retrieve the value stored under the given key
+Retrieve the value stored under the given key
const value = await store.get(new Key('awesome'))
console.log('got content: %s', value.toString('utf8'))
// => got content: datastore
-Extending classes should override query
or implement this method
Retrieve values for the passed keys
+Extending classes should override query
or implement this method
Retrieve values for the passed keys
Optional
options: AbortOptionsfor await (const { key, value } of store.getMany([new Key('awesome')])) {
console.log(`got "${key}" = "${new TextDecoder('utf8').decode(value)}"`')
// => got "/awesome" = "datastore"
}
-Check for the existence of a value for the passed key
+Store the given key/value pairs
+Store the given key/value pairs
Optional
options: AbortOptionsconst source = [{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }]
for await (const { key, value } of store.putMany(source)) {
console.info(`put content for key ${key}`)
}
-Optional
child: Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>Private
Optional
Readonly
childRemove the record for the passed key
+Optional
child: Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>Private
Optional
Readonly
childRemove values for the passed keys
+Remove values for the passed keys
Optional
options: AbortOptionsconst source = [new Key('awesome')]
for await (const key of store.deleteMany(source)) {
console.log(`deleted content with key ${key}`)
}
-Retrieve the value stored under the given key
+Retrieve the value stored under the given key
const value = await store.get(new Key('awesome'))
console.log('got content: %s', value.toString('utf8'))
// => got content: datastore
-Extending classes should override query
or implement this method
Optional
options: AbortOptionsRetrieve values for the passed keys
+Extending classes should override query
or implement this method
Optional
options: AbortOptionsRetrieve values for the passed keys
Optional
options: AbortOptionsfor await (const { key, value } of store.getMany([new Key('awesome')])) {
console.log(`got "${key}" = "${new TextDecoder('utf8').decode(value)}"`')
// => got "/awesome" = "datastore"
}
-Check for the existence of a value for the passed key
+Store the passed value under the passed key
await store.put([{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }])
-Store the given key/value pairs
+Store the given key/value pairs
Optional
options: AbortOptionsconst source = [{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }]
for await (const { key, value } of store.putMany(source)) {
console.info(`put content for key ${key}`)
}
-Private
Readonly
dataRemove the record for the passed key
+Private
Readonly
dataRemove values for the passed keys
+Remove values for the passed keys
Optional
options: AbortOptionsconst source = [new Key('awesome')]
for await (const key of store.deleteMany(source)) {
console.log(`deleted content with key ${key}`)
}
-Retrieve the value stored under the given key
+Retrieve the value stored under the given key
const value = await store.get(new Key('awesome'))
console.log('got content: %s', value.toString('utf8'))
// => got content: datastore
-Extending classes should override query
or implement this method
Retrieve values for the passed keys
+Extending classes should override query
or implement this method
Retrieve values for the passed keys
Optional
options: AbortOptionsfor await (const { key, value } of store.getMany([new Key('awesome')])) {
console.log(`got "${key}" = "${new TextDecoder('utf8').decode(value)}"`')
// => got "/awesome" = "datastore"
}
-Check for the existence of a value for the passed key
+Store the passed value under the passed key
await store.put([{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }])
-Store the given key/value pairs
+Store the given key/value pairs
Optional
options: AbortOptionsconst source = [{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }]
for await (const { key, value } of store.putMany(source)) {
console.info(`put content for key ${key}`)
}
-Private
Readonly
storesRemove the record for the passed key
+Private
Readonly
storesRemove the record for the passed key
Optional
options: AbortOptionsawait store.delete(new Key('awesome'))
console.log('deleted awesome content :(')
-Remove values for the passed keys
const source = [new Key('awesome')]
for await (const key of store.deleteMany(source)) {
console.log(`deleted content with key ${key}`)
}
-Retrieve the value stored under the given key
+Retrieve the value stored under the given key
Optional
options: AbortOptionsconst value = await store.get(new Key('awesome'))
console.log('got content: %s', value.toString('utf8'))
// => got content: datastore
-Extending classes should override query
or implement this method
Optional
options: AbortOptionsRetrieve values for the passed keys
+Extending classes should override query
or implement this method
Optional
options: AbortOptionsRetrieve values for the passed keys
Optional
options: AbortOptionsfor await (const { key, value } of store.getMany([new Key('awesome')])) {
console.log(`got "${key}" = "${new TextDecoder('utf8').decode(value)}"`')
// => got "/awesome" = "datastore"
}
-Check for the existence of a value for the passed key
+Check for the existence of a value for the passed key
Optional
options: AbortOptionsconst exists = await store.has(new Key('awesome'))
if (exists) {
console.log('it is there')
} else {
console.log('it is not there')
}
-Store the passed value under the passed key
Optional
options: AbortOptionsawait store.put([{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }])
-Store the given key/value pairs
const source = [{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }]
for await (const { key, value } of store.putMany(source)) {
console.info(`put content for key ${key}`)
}
-
Remove the record for the passed key