datahike 0.7.1630
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +226 -0
- package/cljs.analyzer.api.js +427 -0
- package/cljs.analyzer.api.js.map +1 -0
- package/cljs.analyzer.impl.js +86 -0
- package/cljs.analyzer.impl.js.map +1 -0
- package/cljs.analyzer.impl.namespaces.js +219 -0
- package/cljs.analyzer.impl.namespaces.js.map +1 -0
- package/cljs.analyzer.js +7186 -0
- package/cljs.analyzer.js.map +1 -0
- package/cljs.analyzer.passes.and_or.js +141 -0
- package/cljs.analyzer.passes.and_or.js.map +1 -0
- package/cljs.analyzer.passes.js +104 -0
- package/cljs.analyzer.passes.js.map +1 -0
- package/cljs.cache.js +1145 -0
- package/cljs.cache.js.map +1 -0
- package/cljs.cache.wrapped.js +352 -0
- package/cljs.cache.wrapped.js.map +1 -0
- package/cljs.core.async.impl.buffers.js +489 -0
- package/cljs.core.async.impl.buffers.js.map +1 -0
- package/cljs.core.async.impl.channels.js +711 -0
- package/cljs.core.async.impl.channels.js.map +1 -0
- package/cljs.core.async.impl.dispatch.js +81 -0
- package/cljs.core.async.impl.dispatch.js.map +1 -0
- package/cljs.core.async.impl.ioc_helpers.js +192 -0
- package/cljs.core.async.impl.ioc_helpers.js.map +1 -0
- package/cljs.core.async.impl.protocols.js +368 -0
- package/cljs.core.async.impl.protocols.js.map +1 -0
- package/cljs.core.async.impl.timers.js +510 -0
- package/cljs.core.async.impl.timers.js.map +1 -0
- package/cljs.core.async.js +8813 -0
- package/cljs.core.async.js.map +1 -0
- package/cljs.core.js +38764 -0
- package/cljs.core.js.map +1 -0
- package/cljs.env.js +60 -0
- package/cljs.env.js.map +1 -0
- package/cljs.nodejs.js +80 -0
- package/cljs.nodejs.js.map +1 -0
- package/cljs.reader.js +462 -0
- package/cljs.reader.js.map +1 -0
- package/cljs.spec.alpha.js +5312 -0
- package/cljs.spec.alpha.js.map +1 -0
- package/cljs.spec.gen.alpha.js +2020 -0
- package/cljs.spec.gen.alpha.js.map +1 -0
- package/cljs.tagged_literals.js +103 -0
- package/cljs.tagged_literals.js.map +1 -0
- package/cljs.tools.reader.edn.js +960 -0
- package/cljs.tools.reader.edn.js.map +1 -0
- package/cljs.tools.reader.impl.commons.js +217 -0
- package/cljs.tools.reader.impl.commons.js.map +1 -0
- package/cljs.tools.reader.impl.errors.js +441 -0
- package/cljs.tools.reader.impl.errors.js.map +1 -0
- package/cljs.tools.reader.impl.inspect.js +182 -0
- package/cljs.tools.reader.impl.inspect.js.map +1 -0
- package/cljs.tools.reader.impl.utils.js +429 -0
- package/cljs.tools.reader.impl.utils.js.map +1 -0
- package/cljs.tools.reader.js +1830 -0
- package/cljs.tools.reader.js.map +1 -0
- package/cljs.tools.reader.reader_types.js +838 -0
- package/cljs.tools.reader.reader_types.js.map +1 -0
- package/cljs_env.js +18192 -0
- package/cljs_node_io.core.js +1278 -0
- package/cljs_node_io.core.js.map +1 -0
- package/cljs_node_io.file.js +918 -0
- package/cljs_node_io.file.js.map +1 -0
- package/cljs_node_io.fs.js +3911 -0
- package/cljs_node_io.fs.js.map +1 -0
- package/clojure.data.js +319 -0
- package/clojure.data.js.map +1 -0
- package/clojure.edn.js +119 -0
- package/clojure.edn.js.map +1 -0
- package/clojure.set.js +406 -0
- package/clojure.set.js.map +1 -0
- package/clojure.string.js +502 -0
- package/clojure.string.js.map +1 -0
- package/clojure.walk.js +156 -0
- package/clojure.walk.js.map +1 -0
- package/datahike.api.impl.js +621 -0
- package/datahike.api.impl.js.map +1 -0
- package/datahike.api.specification.js +85 -0
- package/datahike.api.specification.js.map +1 -0
- package/datahike.array.js +275 -0
- package/datahike.array.js.map +1 -0
- package/datahike.config.js +437 -0
- package/datahike.config.js.map +1 -0
- package/datahike.connections.js +55 -0
- package/datahike.connections.js.map +1 -0
- package/datahike.connector.js +1248 -0
- package/datahike.connector.js.map +1 -0
- package/datahike.constants.js +66 -0
- package/datahike.constants.js.map +1 -0
- package/datahike.core.js +628 -0
- package/datahike.core.js.map +1 -0
- package/datahike.datom.js +963 -0
- package/datahike.datom.js.map +1 -0
- package/datahike.db.interface.js +819 -0
- package/datahike.db.interface.js.map +1 -0
- package/datahike.db.js +3095 -0
- package/datahike.db.js.map +1 -0
- package/datahike.db.search.js +1004 -0
- package/datahike.db.search.js.map +1 -0
- package/datahike.db.transaction.js +1904 -0
- package/datahike.db.transaction.js.map +1 -0
- package/datahike.db.utils.js +642 -0
- package/datahike.db.utils.js.map +1 -0
- package/datahike.gc.js +1618 -0
- package/datahike.gc.js.map +1 -0
- package/datahike.impl.entity.js +604 -0
- package/datahike.impl.entity.js.map +1 -0
- package/datahike.index.interface.js +484 -0
- package/datahike.index.interface.js.map +1 -0
- package/datahike.index.js +50 -0
- package/datahike.index.js.map +1 -0
- package/datahike.index.persistent_set.js +1250 -0
- package/datahike.index.persistent_set.js.map +1 -0
- package/datahike.js.api.js +2211 -0
- package/datahike.js.api.js.map +1 -0
- package/datahike.lru.js +404 -0
- package/datahike.lru.js.map +1 -0
- package/datahike.pull_api.js +533 -0
- package/datahike.pull_api.js.map +1 -0
- package/datahike.query.js +11891 -0
- package/datahike.query.js.map +1 -0
- package/datahike.query_stats.js +152 -0
- package/datahike.query_stats.js.map +1 -0
- package/datahike.readers.js +166 -0
- package/datahike.readers.js.map +1 -0
- package/datahike.schema.js +251 -0
- package/datahike.schema.js.map +1 -0
- package/datahike.schema_cache.js +66 -0
- package/datahike.schema_cache.js.map +1 -0
- package/datahike.spec.js +70 -0
- package/datahike.spec.js.map +1 -0
- package/datahike.store.js +514 -0
- package/datahike.store.js.map +1 -0
- package/datahike.tools.js +436 -0
- package/datahike.tools.js.map +1 -0
- package/datahike.writer.js +3463 -0
- package/datahike.writer.js.map +1 -0
- package/datahike.writing.js +3168 -0
- package/datahike.writing.js.map +1 -0
- package/datalog.parser.impl.js +1421 -0
- package/datalog.parser.impl.js.map +1 -0
- package/datalog.parser.impl.proto.js +213 -0
- package/datalog.parser.impl.proto.js.map +1 -0
- package/datalog.parser.impl.util.js +117 -0
- package/datalog.parser.impl.util.js.map +1 -0
- package/datalog.parser.js +47 -0
- package/datalog.parser.js.map +1 -0
- package/datalog.parser.pull.js +2603 -0
- package/datalog.parser.pull.js.map +1 -0
- package/datalog.parser.type.js +7502 -0
- package/datalog.parser.type.js.map +1 -0
- package/datalog.parser.util.js +60 -0
- package/datalog.parser.util.js.map +1 -0
- package/environ.core.js +263 -0
- package/environ.core.js.map +1 -0
- package/fress.api.js +607 -0
- package/fress.api.js.map +1 -0
- package/fress.impl.adler32.js +435 -0
- package/fress.impl.adler32.js.map +1 -0
- package/fress.impl.bigint.js +185 -0
- package/fress.impl.bigint.js.map +1 -0
- package/fress.impl.buffer.js +1087 -0
- package/fress.impl.buffer.js.map +1 -0
- package/fress.impl.codes.js +105 -0
- package/fress.impl.codes.js.map +1 -0
- package/fress.impl.hopmap.js +603 -0
- package/fress.impl.hopmap.js.map +1 -0
- package/fress.impl.ranges.js +49 -0
- package/fress.impl.ranges.js.map +1 -0
- package/fress.impl.raw_input.js +837 -0
- package/fress.impl.raw_input.js.map +1 -0
- package/fress.impl.raw_output.js +653 -0
- package/fress.impl.raw_output.js.map +1 -0
- package/fress.impl.table.js +133 -0
- package/fress.impl.table.js.map +1 -0
- package/fress.reader.js +2312 -0
- package/fress.reader.js.map +1 -0
- package/fress.util.js +458 -0
- package/fress.util.js.map +1 -0
- package/fress.writer.js +2141 -0
- package/fress.writer.js.map +1 -0
- package/geheimnis.aes.js +132 -0
- package/geheimnis.aes.js.map +1 -0
- package/hasch.base64.js +42 -0
- package/hasch.base64.js.map +1 -0
- package/hasch.benc.js +201 -0
- package/hasch.benc.js.map +1 -0
- package/hasch.core.js +188 -0
- package/hasch.core.js.map +1 -0
- package/hasch.platform.js +221 -0
- package/hasch.platform.js.map +1 -0
- package/incognito.base.js +276 -0
- package/incognito.base.js.map +1 -0
- package/incognito.edn.js +54 -0
- package/incognito.edn.js.map +1 -0
- package/incognito.fressian.js +330 -0
- package/incognito.fressian.js.map +1 -0
- package/index.d.ts +660 -0
- package/is.simm.partial_cps.async.js +142 -0
- package/is.simm.partial_cps.async.js.map +1 -0
- package/is.simm.partial_cps.runtime.js +65 -0
- package/is.simm.partial_cps.runtime.js.map +1 -0
- package/is.simm.partial_cps.sequence.js +1255 -0
- package/is.simm.partial_cps.sequence.js.map +1 -0
- package/konserve.cache.js +2519 -0
- package/konserve.cache.js.map +1 -0
- package/konserve.compressor.js +502 -0
- package/konserve.compressor.js.map +1 -0
- package/konserve.core.js +8052 -0
- package/konserve.core.js.map +1 -0
- package/konserve.encryptor.js +553 -0
- package/konserve.encryptor.js.map +1 -0
- package/konserve.gc.js +541 -0
- package/konserve.gc.js.map +1 -0
- package/konserve.impl.defaults.js +8290 -0
- package/konserve.impl.defaults.js.map +1 -0
- package/konserve.impl.storage_layout.js +849 -0
- package/konserve.impl.storage_layout.js.map +1 -0
- package/konserve.memory.js +2102 -0
- package/konserve.memory.js.map +1 -0
- package/konserve.node_filestore.js +2951 -0
- package/konserve.node_filestore.js.map +1 -0
- package/konserve.protocols.js +590 -0
- package/konserve.protocols.js.map +1 -0
- package/konserve.serializers.js +562 -0
- package/konserve.serializers.js.map +1 -0
- package/konserve.store.js +2245 -0
- package/konserve.store.js.map +1 -0
- package/konserve.tiered.js +9574 -0
- package/konserve.tiered.js.map +1 -0
- package/konserve.utils.js +180 -0
- package/konserve.utils.js.map +1 -0
- package/me.tonsky.persistent_sorted_set.arrays.js +66 -0
- package/me.tonsky.persistent_sorted_set.arrays.js.map +1 -0
- package/me.tonsky.persistent_sorted_set.branch.js +2779 -0
- package/me.tonsky.persistent_sorted_set.branch.js.map +1 -0
- package/me.tonsky.persistent_sorted_set.btset.js +14196 -0
- package/me.tonsky.persistent_sorted_set.btset.js.map +1 -0
- package/me.tonsky.persistent_sorted_set.impl.node.js +324 -0
- package/me.tonsky.persistent_sorted_set.impl.node.js.map +1 -0
- package/me.tonsky.persistent_sorted_set.impl.storage.js +123 -0
- package/me.tonsky.persistent_sorted_set.impl.storage.js.map +1 -0
- package/me.tonsky.persistent_sorted_set.js +890 -0
- package/me.tonsky.persistent_sorted_set.js.map +1 -0
- package/me.tonsky.persistent_sorted_set.leaf.js +561 -0
- package/me.tonsky.persistent_sorted_set.leaf.js.map +1 -0
- package/me.tonsky.persistent_sorted_set.util.js +402 -0
- package/me.tonsky.persistent_sorted_set.util.js.map +1 -0
- package/medley.core.js +1857 -0
- package/medley.core.js.map +1 -0
- package/package.json +38 -0
- package/spec_tools.core.js +1925 -0
- package/spec_tools.core.js.map +1 -0
- package/spec_tools.data_spec.js +1291 -0
- package/spec_tools.data_spec.js.map +1 -0
- package/spec_tools.form.js +185 -0
- package/spec_tools.form.js.map +1 -0
- package/spec_tools.impl.js +362 -0
- package/spec_tools.impl.js.map +1 -0
- package/spec_tools.parse.js +427 -0
- package/spec_tools.parse.js.map +1 -0
- package/spec_tools.transform.js +288 -0
- package/spec_tools.transform.js.map +1 -0
- package/superv.async.js +8617 -0
- package/superv.async.js.map +1 -0
- package/tailrecursion.priority_map.js +994 -0
- package/tailrecursion.priority_map.js.map +1 -0
- package/taoensso.encore.js +12385 -0
- package/taoensso.encore.js.map +1 -0
- package/taoensso.timbre.appenders.core.js +239 -0
- package/taoensso.timbre.appenders.core.js.map +1 -0
- package/taoensso.timbre.js +1264 -0
- package/taoensso.timbre.js.map +1 -0
- package/taoensso.truss.impl.js +442 -0
- package/taoensso.truss.impl.js.map +1 -0
- package/taoensso.truss.js +743 -0
- package/taoensso.truss.js.map +1 -0
- package/test-config-keys.js +33 -0
- package/test-final.js +36 -0
- package/test-key-duplication.js +67 -0
- package/test.js +557 -0
|
@@ -0,0 +1,849 @@
|
|
|
1
|
+
var $CLJS = require("./cljs_env");
|
|
2
|
+
var $jscomp = $CLJS.$jscomp;
|
|
3
|
+
var COMPILED = false;
|
|
4
|
+
require("./cljs.core.js");
|
|
5
|
+
require("./konserve.serializers.js");
|
|
6
|
+
require("./konserve.compressor.js");
|
|
7
|
+
require("./konserve.encryptor.js");
|
|
8
|
+
var environ=$CLJS.environ || ($CLJS.environ = {});
|
|
9
|
+
var fress=$CLJS.fress || ($CLJS.fress = {});
|
|
10
|
+
var datahike=$CLJS.datahike || ($CLJS.datahike = {});
|
|
11
|
+
var clojure=$CLJS.clojure || ($CLJS.clojure = {});
|
|
12
|
+
var hasch=$CLJS.hasch || ($CLJS.hasch = {});
|
|
13
|
+
var tailrecursion=$CLJS.tailrecursion || ($CLJS.tailrecursion = {});
|
|
14
|
+
var superv=$CLJS.superv || ($CLJS.superv = {});
|
|
15
|
+
var geheimnis=$CLJS.geheimnis || ($CLJS.geheimnis = {});
|
|
16
|
+
var is=$CLJS.is || ($CLJS.is = {});
|
|
17
|
+
var cljs=$CLJS.cljs || ($CLJS.cljs = {});
|
|
18
|
+
var cljs_node_io=$CLJS.cljs_node_io || ($CLJS.cljs_node_io = {});
|
|
19
|
+
var goog=$CLJS.goog || ($CLJS.goog = {});
|
|
20
|
+
var konserve=$CLJS.konserve || ($CLJS.konserve = {});
|
|
21
|
+
var datalog=$CLJS.datalog || ($CLJS.datalog = {});
|
|
22
|
+
var spec_tools=$CLJS.spec_tools || ($CLJS.spec_tools = {});
|
|
23
|
+
var taoensso=$CLJS.taoensso || ($CLJS.taoensso = {});
|
|
24
|
+
var incognito=$CLJS.incognito || ($CLJS.incognito = {});
|
|
25
|
+
var medley=$CLJS.medley || ($CLJS.medley = {});
|
|
26
|
+
var me=$CLJS.me || ($CLJS.me = {});
|
|
27
|
+
|
|
28
|
+
$CLJS.SHADOW_ENV.setLoaded("konserve.impl.storage_layout.js");
|
|
29
|
+
|
|
30
|
+
goog.provide('konserve.impl.storage_layout');
|
|
31
|
+
konserve.impl.storage_layout.header_size = (20);
|
|
32
|
+
/**
|
|
33
|
+
* Return Byte Array with following content
|
|
34
|
+
* 1th Byte = Storage layout used
|
|
35
|
+
* 2th Byte = Serializer Type
|
|
36
|
+
* 3th Byte = Compressor Type
|
|
37
|
+
* 4th Byte = Encryptor Type
|
|
38
|
+
* 5-8th Byte = Meta-Size
|
|
39
|
+
* 9th-20th Byte are spare
|
|
40
|
+
*/
|
|
41
|
+
konserve.impl.storage_layout.create_header = (function konserve$impl$storage_layout$create_header(version,serializer,compressor,encryptor,meta){
|
|
42
|
+
var serializer_id = cljs.core.get.cljs$core$IFn$_invoke$arity$2(konserve.serializers.serializer_class__GT_byte,cljs.core.type(serializer));
|
|
43
|
+
var compressor_id = cljs.core.get.cljs$core$IFn$_invoke$arity$2(konserve.compressor.compressor__GT_byte,compressor);
|
|
44
|
+
var encryptor_id = cljs.core.get.cljs$core$IFn$_invoke$arity$2(konserve.encryptor.encryptor__GT_byte,encryptor);
|
|
45
|
+
var env_array = [version,serializer_id,compressor_id,encryptor_id];
|
|
46
|
+
var return_buffer = (new Uint8Array((20)));
|
|
47
|
+
var n__5593__auto___50834 = env_array.length;
|
|
48
|
+
var i_50835 = (0);
|
|
49
|
+
while(true){
|
|
50
|
+
if((i_50835 < n__5593__auto___50834)){
|
|
51
|
+
(return_buffer[i_50835] = (env_array[i_50835]));
|
|
52
|
+
|
|
53
|
+
var G__50836 = (i_50835 + (1));
|
|
54
|
+
i_50835 = G__50836;
|
|
55
|
+
continue;
|
|
56
|
+
} else {
|
|
57
|
+
}
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
(return_buffer[(4)] = meta);
|
|
62
|
+
|
|
63
|
+
return return_buffer;
|
|
64
|
+
});
|
|
65
|
+
konserve.impl.storage_layout.header_not_zero_padded_QMARK_ = (function konserve$impl$storage_layout$header_not_zero_padded_QMARK_(bs){
|
|
66
|
+
return ((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(8)]))) || (((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(9)]))) || (((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(10)]))) || (((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(11)]))) || (((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(12)]))) || (((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(13)]))) || (((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(14)]))) || (((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(15)]))) || (((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(16)]))) || (((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(17)]))) || (((cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(18)]))) || (cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((0),(bs[(19)]))))))))))))))))))))))));
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* Inverse function to create-header. serializers are a map of serializer-id to
|
|
70
|
+
* instance that are potentially initialized with custom handlers by the store
|
|
71
|
+
* user. We assume compressors and encryptors to use system-wide standard configurations.
|
|
72
|
+
*/
|
|
73
|
+
konserve.impl.storage_layout.parse_header = (function konserve$impl$storage_layout$parse_header(header_bytes,serializers){
|
|
74
|
+
var version = (header_bytes[(0)]);
|
|
75
|
+
var _ = ((cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(version,(1)))?null:(function(){throw cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2("Konserve version not supported.",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"konserve-version-in-header-no-supported","konserve-version-in-header-no-supported",847367907),new cljs.core.Keyword(null,"header-version","header-version",1967340338),version,new cljs.core.Keyword(null,"supported-versions","supported-versions",1185363407),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [(1),null], null), null)], null))})());
|
|
76
|
+
var serializer_id = (header_bytes[(1)]);
|
|
77
|
+
var compressor_id = (header_bytes[(2)]);
|
|
78
|
+
var encryptor_id = (header_bytes[(3)]);
|
|
79
|
+
var meta_size = (header_bytes[(4)]);
|
|
80
|
+
var serializer = (function (){var G__50322 = (konserve.serializers.byte__GT_key.cljs$core$IFn$_invoke$arity$1 ? konserve.serializers.byte__GT_key.cljs$core$IFn$_invoke$arity$1(serializer_id) : konserve.serializers.byte__GT_key.call(null, serializer_id));
|
|
81
|
+
return (serializers.cljs$core$IFn$_invoke$arity$1 ? serializers.cljs$core$IFn$_invoke$arity$1(G__50322) : serializers.call(null, G__50322));
|
|
82
|
+
})();
|
|
83
|
+
var compressor = (konserve.compressor.byte__GT_compressor.cljs$core$IFn$_invoke$arity$1 ? konserve.compressor.byte__GT_compressor.cljs$core$IFn$_invoke$arity$1(compressor_id) : konserve.compressor.byte__GT_compressor.call(null, compressor_id));
|
|
84
|
+
var encryptor = (konserve.encryptor.byte__GT_encryptor.cljs$core$IFn$_invoke$arity$1 ? konserve.encryptor.byte__GT_encryptor.cljs$core$IFn$_invoke$arity$1(encryptor_id) : konserve.encryptor.byte__GT_encryptor.call(null, encryptor_id));
|
|
85
|
+
if(cljs.core.truth_(serializer)){
|
|
86
|
+
} else {
|
|
87
|
+
throw cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2("Serializer not found.",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"serializer-not-found","serializer-not-found",1733390518),new cljs.core.Keyword(null,"serializers","serializers",1724052078),serializers,new cljs.core.Keyword(null,"serializer-id","serializer-id",171763160),serializer_id], null));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if(cljs.core.truth_(compressor)){
|
|
91
|
+
} else {
|
|
92
|
+
throw cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2("Compressor not found.",new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"compressor-not-found","compressor-not-found",-880502925),new cljs.core.Keyword(null,"compressor-id","compressor-id",635904752),compressor_id], null));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if(cljs.core.truth_(encryptor)){
|
|
96
|
+
} else {
|
|
97
|
+
throw cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2("Encryptor not found.",new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"encryptor-not-found","encryptor-not-found",1721996832),new cljs.core.Keyword(null,"encryptor-id","encryptor-id",-589347125),encryptor_id], null));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [version,serializer,compressor,encryptor,meta_size,(20)], null);
|
|
101
|
+
});
|
|
102
|
+
konserve.impl.storage_layout.default_version = (1);
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Backing store protocol for default implementation of the high-level konserve protocol.
|
|
106
|
+
* @interface
|
|
107
|
+
*/
|
|
108
|
+
konserve.impl.storage_layout.PBackingStore = function(){};
|
|
109
|
+
|
|
110
|
+
var konserve$impl$storage_layout$PBackingStore$_create_blob$dyn_50847 = (function (this$,store_key,env){
|
|
111
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
112
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._create_blob[goog.typeOf(x__5350__auto__)]);
|
|
113
|
+
if((!((m__5351__auto__ == null)))){
|
|
114
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_key,env) : m__5351__auto__.call(null, this$,store_key,env));
|
|
115
|
+
} else {
|
|
116
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._create_blob["_"]);
|
|
117
|
+
if((!((m__5349__auto__ == null)))){
|
|
118
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_key,env) : m__5349__auto__.call(null, this$,store_key,env));
|
|
119
|
+
} else {
|
|
120
|
+
throw cljs.core.missing_protocol("PBackingStore.-create-blob",this$);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
/**
|
|
125
|
+
* Create a blob object to write a metadata and value into.
|
|
126
|
+
*/
|
|
127
|
+
konserve.impl.storage_layout._create_blob = (function konserve$impl$storage_layout$_create_blob(this$,store_key,env){
|
|
128
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_create_blob$arity$3 == null)))))){
|
|
129
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_create_blob$arity$3(this$,store_key,env);
|
|
130
|
+
} else {
|
|
131
|
+
return konserve$impl$storage_layout$PBackingStore$_create_blob$dyn_50847(this$,store_key,env);
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
var konserve$impl$storage_layout$PBackingStore$_delete_blob$dyn_50849 = (function (this$,store_key,env){
|
|
136
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
137
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._delete_blob[goog.typeOf(x__5350__auto__)]);
|
|
138
|
+
if((!((m__5351__auto__ == null)))){
|
|
139
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_key,env) : m__5351__auto__.call(null, this$,store_key,env));
|
|
140
|
+
} else {
|
|
141
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._delete_blob["_"]);
|
|
142
|
+
if((!((m__5349__auto__ == null)))){
|
|
143
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_key,env) : m__5349__auto__.call(null, this$,store_key,env));
|
|
144
|
+
} else {
|
|
145
|
+
throw cljs.core.missing_protocol("PBackingStore.-delete-blob",this$);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
/**
|
|
150
|
+
* Delete a blob object under path.
|
|
151
|
+
*/
|
|
152
|
+
konserve.impl.storage_layout._delete_blob = (function konserve$impl$storage_layout$_delete_blob(this$,store_key,env){
|
|
153
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_delete_blob$arity$3 == null)))))){
|
|
154
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_delete_blob$arity$3(this$,store_key,env);
|
|
155
|
+
} else {
|
|
156
|
+
return konserve$impl$storage_layout$PBackingStore$_delete_blob$dyn_50849(this$,store_key,env);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
var konserve$impl$storage_layout$PBackingStore$_blob_exists_QMARK_$dyn_50852 = (function (this$,store_key,env){
|
|
161
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
162
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._blob_exists_QMARK_[goog.typeOf(x__5350__auto__)]);
|
|
163
|
+
if((!((m__5351__auto__ == null)))){
|
|
164
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_key,env) : m__5351__auto__.call(null, this$,store_key,env));
|
|
165
|
+
} else {
|
|
166
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._blob_exists_QMARK_["_"]);
|
|
167
|
+
if((!((m__5349__auto__ == null)))){
|
|
168
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_key,env) : m__5349__auto__.call(null, this$,store_key,env));
|
|
169
|
+
} else {
|
|
170
|
+
throw cljs.core.missing_protocol("PBackingStore.-blob-exists?",this$);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
/**
|
|
175
|
+
* Check whether blob exists under path
|
|
176
|
+
*/
|
|
177
|
+
konserve.impl.storage_layout._blob_exists_QMARK_ = (function konserve$impl$storage_layout$_blob_exists_QMARK_(this$,store_key,env){
|
|
178
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_blob_exists_QMARK_$arity$3 == null)))))){
|
|
179
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_blob_exists_QMARK_$arity$3(this$,store_key,env);
|
|
180
|
+
} else {
|
|
181
|
+
return konserve$impl$storage_layout$PBackingStore$_blob_exists_QMARK_$dyn_50852(this$,store_key,env);
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
var konserve$impl$storage_layout$PBackingStore$_migratable$dyn_50855 = (function (this$,key,store_key,env){
|
|
186
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
187
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._migratable[goog.typeOf(x__5350__auto__)]);
|
|
188
|
+
if((!((m__5351__auto__ == null)))){
|
|
189
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$4(this$,key,store_key,env) : m__5351__auto__.call(null, this$,key,store_key,env));
|
|
190
|
+
} else {
|
|
191
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._migratable["_"]);
|
|
192
|
+
if((!((m__5349__auto__ == null)))){
|
|
193
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$4(this$,key,store_key,env) : m__5349__auto__.call(null, this$,key,store_key,env));
|
|
194
|
+
} else {
|
|
195
|
+
throw cljs.core.missing_protocol("PBackingStore.-migratable",this$);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
/**
|
|
200
|
+
* Check if blob exists elsewhere and return a migration key or nil.
|
|
201
|
+
*/
|
|
202
|
+
konserve.impl.storage_layout._migratable = (function konserve$impl$storage_layout$_migratable(this$,key,store_key,env){
|
|
203
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_migratable$arity$4 == null)))))){
|
|
204
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_migratable$arity$4(this$,key,store_key,env);
|
|
205
|
+
} else {
|
|
206
|
+
return konserve$impl$storage_layout$PBackingStore$_migratable$dyn_50855(this$,key,store_key,env);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
var konserve$impl$storage_layout$PBackingStore$_migrate$dyn_50857 = (function (this$,migration_key,key_vec,serializer,read_handlers,write_handlers,env){
|
|
211
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
212
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._migrate[goog.typeOf(x__5350__auto__)]);
|
|
213
|
+
if((!((m__5351__auto__ == null)))){
|
|
214
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$7 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$7(this$,migration_key,key_vec,serializer,read_handlers,write_handlers,env) : m__5351__auto__.call(null, this$,migration_key,key_vec,serializer,read_handlers,write_handlers,env));
|
|
215
|
+
} else {
|
|
216
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._migrate["_"]);
|
|
217
|
+
if((!((m__5349__auto__ == null)))){
|
|
218
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$7 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$7(this$,migration_key,key_vec,serializer,read_handlers,write_handlers,env) : m__5349__auto__.call(null, this$,migration_key,key_vec,serializer,read_handlers,write_handlers,env));
|
|
219
|
+
} else {
|
|
220
|
+
throw cljs.core.missing_protocol("PBackingStore.-migrate",this$);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
/**
|
|
225
|
+
* Use the key returned from -migratable to import blob for key-vec.
|
|
226
|
+
*/
|
|
227
|
+
konserve.impl.storage_layout._migrate = (function konserve$impl$storage_layout$_migrate(this$,migration_key,key_vec,serializer,read_handlers,write_handlers,env){
|
|
228
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_migrate$arity$7 == null)))))){
|
|
229
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_migrate$arity$7(this$,migration_key,key_vec,serializer,read_handlers,write_handlers,env);
|
|
230
|
+
} else {
|
|
231
|
+
return konserve$impl$storage_layout$PBackingStore$_migrate$dyn_50857(this$,migration_key,key_vec,serializer,read_handlers,write_handlers,env);
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
var konserve$impl$storage_layout$PBackingStore$_copy$dyn_50858 = (function (this$,from,to,env){
|
|
236
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
237
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._copy[goog.typeOf(x__5350__auto__)]);
|
|
238
|
+
if((!((m__5351__auto__ == null)))){
|
|
239
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$4(this$,from,to,env) : m__5351__auto__.call(null, this$,from,to,env));
|
|
240
|
+
} else {
|
|
241
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._copy["_"]);
|
|
242
|
+
if((!((m__5349__auto__ == null)))){
|
|
243
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$4(this$,from,to,env) : m__5349__auto__.call(null, this$,from,to,env));
|
|
244
|
+
} else {
|
|
245
|
+
throw cljs.core.missing_protocol("PBackingStore.-copy",this$);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
/**
|
|
250
|
+
* Copy a blob from one key to another.
|
|
251
|
+
*/
|
|
252
|
+
konserve.impl.storage_layout._copy = (function konserve$impl$storage_layout$_copy(this$,from,to,env){
|
|
253
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_copy$arity$4 == null)))))){
|
|
254
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_copy$arity$4(this$,from,to,env);
|
|
255
|
+
} else {
|
|
256
|
+
return konserve$impl$storage_layout$PBackingStore$_copy$dyn_50858(this$,from,to,env);
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
var konserve$impl$storage_layout$PBackingStore$_atomic_move$dyn_50863 = (function (this$,from,to,env){
|
|
261
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
262
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._atomic_move[goog.typeOf(x__5350__auto__)]);
|
|
263
|
+
if((!((m__5351__auto__ == null)))){
|
|
264
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$4(this$,from,to,env) : m__5351__auto__.call(null, this$,from,to,env));
|
|
265
|
+
} else {
|
|
266
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._atomic_move["_"]);
|
|
267
|
+
if((!((m__5349__auto__ == null)))){
|
|
268
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$4(this$,from,to,env) : m__5349__auto__.call(null, this$,from,to,env));
|
|
269
|
+
} else {
|
|
270
|
+
throw cljs.core.missing_protocol("PBackingStore.-atomic-move",this$);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
/**
|
|
275
|
+
* Atomically move (rename) a blob.
|
|
276
|
+
*/
|
|
277
|
+
konserve.impl.storage_layout._atomic_move = (function konserve$impl$storage_layout$_atomic_move(this$,from,to,env){
|
|
278
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_atomic_move$arity$4 == null)))))){
|
|
279
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_atomic_move$arity$4(this$,from,to,env);
|
|
280
|
+
} else {
|
|
281
|
+
return konserve$impl$storage_layout$PBackingStore$_atomic_move$dyn_50863(this$,from,to,env);
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
var konserve$impl$storage_layout$PBackingStore$_create_store$dyn_50866 = (function (this$,env){
|
|
286
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
287
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._create_store[goog.typeOf(x__5350__auto__)]);
|
|
288
|
+
if((!((m__5351__auto__ == null)))){
|
|
289
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5351__auto__.call(null, this$,env));
|
|
290
|
+
} else {
|
|
291
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._create_store["_"]);
|
|
292
|
+
if((!((m__5349__auto__ == null)))){
|
|
293
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5349__auto__.call(null, this$,env));
|
|
294
|
+
} else {
|
|
295
|
+
throw cljs.core.missing_protocol("PBackingStore.-create-store",this$);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
/**
|
|
300
|
+
* Create the underlying store.
|
|
301
|
+
*/
|
|
302
|
+
konserve.impl.storage_layout._create_store = (function konserve$impl$storage_layout$_create_store(this$,env){
|
|
303
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_create_store$arity$2 == null)))))){
|
|
304
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_create_store$arity$2(this$,env);
|
|
305
|
+
} else {
|
|
306
|
+
return konserve$impl$storage_layout$PBackingStore$_create_store$dyn_50866(this$,env);
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
|
|
310
|
+
var konserve$impl$storage_layout$PBackingStore$_delete_store$dyn_50871 = (function (this$,env){
|
|
311
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
312
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._delete_store[goog.typeOf(x__5350__auto__)]);
|
|
313
|
+
if((!((m__5351__auto__ == null)))){
|
|
314
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5351__auto__.call(null, this$,env));
|
|
315
|
+
} else {
|
|
316
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._delete_store["_"]);
|
|
317
|
+
if((!((m__5349__auto__ == null)))){
|
|
318
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5349__auto__.call(null, this$,env));
|
|
319
|
+
} else {
|
|
320
|
+
throw cljs.core.missing_protocol("PBackingStore.-delete-store",this$);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
/**
|
|
325
|
+
* Delete the underlying store.
|
|
326
|
+
*/
|
|
327
|
+
konserve.impl.storage_layout._delete_store = (function konserve$impl$storage_layout$_delete_store(this$,env){
|
|
328
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_delete_store$arity$2 == null)))))){
|
|
329
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_delete_store$arity$2(this$,env);
|
|
330
|
+
} else {
|
|
331
|
+
return konserve$impl$storage_layout$PBackingStore$_delete_store$dyn_50871(this$,env);
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
var konserve$impl$storage_layout$PBackingStore$_store_exists_QMARK_$dyn_50879 = (function (this$,env){
|
|
336
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
337
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._store_exists_QMARK_[goog.typeOf(x__5350__auto__)]);
|
|
338
|
+
if((!((m__5351__auto__ == null)))){
|
|
339
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5351__auto__.call(null, this$,env));
|
|
340
|
+
} else {
|
|
341
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._store_exists_QMARK_["_"]);
|
|
342
|
+
if((!((m__5349__auto__ == null)))){
|
|
343
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5349__auto__.call(null, this$,env));
|
|
344
|
+
} else {
|
|
345
|
+
throw cljs.core.missing_protocol("PBackingStore.-store-exists?",this$);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
/**
|
|
350
|
+
* Check if underlying store already exists.
|
|
351
|
+
*/
|
|
352
|
+
konserve.impl.storage_layout._store_exists_QMARK_ = (function konserve$impl$storage_layout$_store_exists_QMARK_(this$,env){
|
|
353
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_store_exists_QMARK_$arity$2 == null)))))){
|
|
354
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_store_exists_QMARK_$arity$2(this$,env);
|
|
355
|
+
} else {
|
|
356
|
+
return konserve$impl$storage_layout$PBackingStore$_store_exists_QMARK_$dyn_50879(this$,env);
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
var konserve$impl$storage_layout$PBackingStore$_sync_store$dyn_50887 = (function (this$,env){
|
|
361
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
362
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._sync_store[goog.typeOf(x__5350__auto__)]);
|
|
363
|
+
if((!((m__5351__auto__ == null)))){
|
|
364
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5351__auto__.call(null, this$,env));
|
|
365
|
+
} else {
|
|
366
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._sync_store["_"]);
|
|
367
|
+
if((!((m__5349__auto__ == null)))){
|
|
368
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5349__auto__.call(null, this$,env));
|
|
369
|
+
} else {
|
|
370
|
+
throw cljs.core.missing_protocol("PBackingStore.-sync-store",this$);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
/**
|
|
375
|
+
* Synchronize the store. This is only needed if your store does not guarantee durability without this synchronisation command, e.g. fsync in the file system.
|
|
376
|
+
*/
|
|
377
|
+
konserve.impl.storage_layout._sync_store = (function konserve$impl$storage_layout$_sync_store(this$,env){
|
|
378
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_sync_store$arity$2 == null)))))){
|
|
379
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_sync_store$arity$2(this$,env);
|
|
380
|
+
} else {
|
|
381
|
+
return konserve$impl$storage_layout$PBackingStore$_sync_store$dyn_50887(this$,env);
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
var konserve$impl$storage_layout$PBackingStore$_keys$dyn_50889 = (function (this$,env){
|
|
386
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
387
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._keys[goog.typeOf(x__5350__auto__)]);
|
|
388
|
+
if((!((m__5351__auto__ == null)))){
|
|
389
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5351__auto__.call(null, this$,env));
|
|
390
|
+
} else {
|
|
391
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._keys["_"]);
|
|
392
|
+
if((!((m__5349__auto__ == null)))){
|
|
393
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5349__auto__.call(null, this$,env));
|
|
394
|
+
} else {
|
|
395
|
+
throw cljs.core.missing_protocol("PBackingStore.-keys",this$);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
/**
|
|
400
|
+
* List all the keys representing blobs in the store.
|
|
401
|
+
*/
|
|
402
|
+
konserve.impl.storage_layout._keys = (function konserve$impl$storage_layout$_keys(this$,env){
|
|
403
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_keys$arity$2 == null)))))){
|
|
404
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_keys$arity$2(this$,env);
|
|
405
|
+
} else {
|
|
406
|
+
return konserve$impl$storage_layout$PBackingStore$_keys$dyn_50889(this$,env);
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
var konserve$impl$storage_layout$PBackingStore$_handle_foreign_key$dyn_50893 = (function (this$,migration_key,serializer,read_handlers,write_handlers,env){
|
|
411
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
412
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._handle_foreign_key[goog.typeOf(x__5350__auto__)]);
|
|
413
|
+
if((!((m__5351__auto__ == null)))){
|
|
414
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$6 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$6(this$,migration_key,serializer,read_handlers,write_handlers,env) : m__5351__auto__.call(null, this$,migration_key,serializer,read_handlers,write_handlers,env));
|
|
415
|
+
} else {
|
|
416
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._handle_foreign_key["_"]);
|
|
417
|
+
if((!((m__5349__auto__ == null)))){
|
|
418
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$6 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$6(this$,migration_key,serializer,read_handlers,write_handlers,env) : m__5349__auto__.call(null, this$,migration_key,serializer,read_handlers,write_handlers,env));
|
|
419
|
+
} else {
|
|
420
|
+
throw cljs.core.missing_protocol("PBackingStore.-handle-foreign-key",this$);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
/**
|
|
425
|
+
* Handle keys not recognized by the current konserve version.
|
|
426
|
+
*/
|
|
427
|
+
konserve.impl.storage_layout._handle_foreign_key = (function konserve$impl$storage_layout$_handle_foreign_key(this$,migration_key,serializer,read_handlers,write_handlers,env){
|
|
428
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingStore$_handle_foreign_key$arity$6 == null)))))){
|
|
429
|
+
return this$.konserve$impl$storage_layout$PBackingStore$_handle_foreign_key$arity$6(this$,migration_key,serializer,read_handlers,write_handlers,env);
|
|
430
|
+
} else {
|
|
431
|
+
return konserve$impl$storage_layout$PBackingStore$_handle_foreign_key$dyn_50893(this$,migration_key,serializer,read_handlers,write_handlers,env);
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Protocol for backing stores that support atomic multi-key writes.
|
|
438
|
+
* @interface
|
|
439
|
+
*/
|
|
440
|
+
konserve.impl.storage_layout.PMultiWriteBackingStore = function(){};
|
|
441
|
+
|
|
442
|
+
var konserve$impl$storage_layout$PMultiWriteBackingStore$_multi_write_blobs$dyn_50903 = (function (this$,store_key_values,env){
|
|
443
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
444
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._multi_write_blobs[goog.typeOf(x__5350__auto__)]);
|
|
445
|
+
if((!((m__5351__auto__ == null)))){
|
|
446
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_key_values,env) : m__5351__auto__.call(null, this$,store_key_values,env));
|
|
447
|
+
} else {
|
|
448
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._multi_write_blobs["_"]);
|
|
449
|
+
if((!((m__5349__auto__ == null)))){
|
|
450
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_key_values,env) : m__5349__auto__.call(null, this$,store_key_values,env));
|
|
451
|
+
} else {
|
|
452
|
+
throw cljs.core.missing_protocol("PMultiWriteBackingStore.-multi-write-blobs",this$);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
/**
|
|
457
|
+
* Write multiple blobs atomically in a single operation.
|
|
458
|
+
* store-key-values is a sequence of [store-key serialized-data] pairs.
|
|
459
|
+
* serialized-data is a map containing :header, :meta-arr, and :value-arr.
|
|
460
|
+
* Returns a map of store-keys to success values (typically true).
|
|
461
|
+
* Backends must implement this to support multi-key operations.
|
|
462
|
+
*/
|
|
463
|
+
konserve.impl.storage_layout._multi_write_blobs = (function konserve$impl$storage_layout$_multi_write_blobs(this$,store_key_values,env){
|
|
464
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PMultiWriteBackingStore$_multi_write_blobs$arity$3 == null)))))){
|
|
465
|
+
return this$.konserve$impl$storage_layout$PMultiWriteBackingStore$_multi_write_blobs$arity$3(this$,store_key_values,env);
|
|
466
|
+
} else {
|
|
467
|
+
return konserve$impl$storage_layout$PMultiWriteBackingStore$_multi_write_blobs$dyn_50903(this$,store_key_values,env);
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
var konserve$impl$storage_layout$PMultiWriteBackingStore$_multi_delete_blobs$dyn_50916 = (function (this$,store_keys,env){
|
|
472
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
473
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._multi_delete_blobs[goog.typeOf(x__5350__auto__)]);
|
|
474
|
+
if((!((m__5351__auto__ == null)))){
|
|
475
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_keys,env) : m__5351__auto__.call(null, this$,store_keys,env));
|
|
476
|
+
} else {
|
|
477
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._multi_delete_blobs["_"]);
|
|
478
|
+
if((!((m__5349__auto__ == null)))){
|
|
479
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_keys,env) : m__5349__auto__.call(null, this$,store_keys,env));
|
|
480
|
+
} else {
|
|
481
|
+
throw cljs.core.missing_protocol("PMultiWriteBackingStore.-multi-delete-blobs",this$);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
/**
|
|
486
|
+
* Delete multiple blobs atomically in a single operation.
|
|
487
|
+
* store-keys is a sequence of store-key strings to delete.
|
|
488
|
+
* Returns a map of store-keys to boolean indicating if the blob existed before deletion.
|
|
489
|
+
* Backends must implement this to support multi-key operations.
|
|
490
|
+
*/
|
|
491
|
+
konserve.impl.storage_layout._multi_delete_blobs = (function konserve$impl$storage_layout$_multi_delete_blobs(this$,store_keys,env){
|
|
492
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PMultiWriteBackingStore$_multi_delete_blobs$arity$3 == null)))))){
|
|
493
|
+
return this$.konserve$impl$storage_layout$PMultiWriteBackingStore$_multi_delete_blobs$arity$3(this$,store_keys,env);
|
|
494
|
+
} else {
|
|
495
|
+
return konserve$impl$storage_layout$PMultiWriteBackingStore$_multi_delete_blobs$dyn_50916(this$,store_keys,env);
|
|
496
|
+
}
|
|
497
|
+
});
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Protocol for backing stores that support atomic multi-key reads.
|
|
502
|
+
* @interface
|
|
503
|
+
*/
|
|
504
|
+
konserve.impl.storage_layout.PMultiReadBackingStore = function(){};
|
|
505
|
+
|
|
506
|
+
var konserve$impl$storage_layout$PMultiReadBackingStore$_multi_read_blobs$dyn_50924 = (function (this$,store_keys,env){
|
|
507
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
508
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._multi_read_blobs[goog.typeOf(x__5350__auto__)]);
|
|
509
|
+
if((!((m__5351__auto__ == null)))){
|
|
510
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_keys,env) : m__5351__auto__.call(null, this$,store_keys,env));
|
|
511
|
+
} else {
|
|
512
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._multi_read_blobs["_"]);
|
|
513
|
+
if((!((m__5349__auto__ == null)))){
|
|
514
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$3(this$,store_keys,env) : m__5349__auto__.call(null, this$,store_keys,env));
|
|
515
|
+
} else {
|
|
516
|
+
throw cljs.core.missing_protocol("PMultiReadBackingStore.-multi-read-blobs",this$);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
/**
|
|
521
|
+
* Read multiple blobs atomically in a single operation.
|
|
522
|
+
* store-keys is a sequence of store-key strings to read.
|
|
523
|
+
* Returns a sparse map of {store-key -> blob} for found keys only.
|
|
524
|
+
* Missing keys are excluded from the result map.
|
|
525
|
+
* Backends must implement this to support multi-key read operations.
|
|
526
|
+
*/
|
|
527
|
+
konserve.impl.storage_layout._multi_read_blobs = (function konserve$impl$storage_layout$_multi_read_blobs(this$,store_keys,env){
|
|
528
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PMultiReadBackingStore$_multi_read_blobs$arity$3 == null)))))){
|
|
529
|
+
return this$.konserve$impl$storage_layout$PMultiReadBackingStore$_multi_read_blobs$arity$3(this$,store_keys,env);
|
|
530
|
+
} else {
|
|
531
|
+
return konserve$impl$storage_layout$PMultiReadBackingStore$_multi_read_blobs$dyn_50924(this$,store_keys,env);
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Blob object that is backing a stored value and its metadata.
|
|
538
|
+
* @interface
|
|
539
|
+
*/
|
|
540
|
+
konserve.impl.storage_layout.PBackingBlob = function(){};
|
|
541
|
+
|
|
542
|
+
var konserve$impl$storage_layout$PBackingBlob$_sync$dyn_50931 = (function (this$,env){
|
|
543
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
544
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._sync[goog.typeOf(x__5350__auto__)]);
|
|
545
|
+
if((!((m__5351__auto__ == null)))){
|
|
546
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5351__auto__.call(null, this$,env));
|
|
547
|
+
} else {
|
|
548
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._sync["_"]);
|
|
549
|
+
if((!((m__5349__auto__ == null)))){
|
|
550
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5349__auto__.call(null, this$,env));
|
|
551
|
+
} else {
|
|
552
|
+
throw cljs.core.missing_protocol("PBackingBlob.-sync",this$);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
/**
|
|
557
|
+
* Synchronize this object and ensure it is stored. This is not necessary in many stores.
|
|
558
|
+
*/
|
|
559
|
+
konserve.impl.storage_layout._sync = (function konserve$impl$storage_layout$_sync(this$,env){
|
|
560
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_sync$arity$2 == null)))))){
|
|
561
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_sync$arity$2(this$,env);
|
|
562
|
+
} else {
|
|
563
|
+
return konserve$impl$storage_layout$PBackingBlob$_sync$dyn_50931(this$,env);
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
var konserve$impl$storage_layout$PBackingBlob$_close$dyn_50935 = (function (this$,env){
|
|
568
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
569
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._close[goog.typeOf(x__5350__auto__)]);
|
|
570
|
+
if((!((m__5351__auto__ == null)))){
|
|
571
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5351__auto__.call(null, this$,env));
|
|
572
|
+
} else {
|
|
573
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._close["_"]);
|
|
574
|
+
if((!((m__5349__auto__ == null)))){
|
|
575
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5349__auto__.call(null, this$,env));
|
|
576
|
+
} else {
|
|
577
|
+
throw cljs.core.missing_protocol("PBackingBlob.-close",this$);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
/**
|
|
582
|
+
* Close the blob and ensure that pending data is send to the store.
|
|
583
|
+
*/
|
|
584
|
+
konserve.impl.storage_layout._close = (function konserve$impl$storage_layout$_close(this$,env){
|
|
585
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_close$arity$2 == null)))))){
|
|
586
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_close$arity$2(this$,env);
|
|
587
|
+
} else {
|
|
588
|
+
return konserve$impl$storage_layout$PBackingBlob$_close$dyn_50935(this$,env);
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
var konserve$impl$storage_layout$PBackingBlob$_get_lock$dyn_50939 = (function (this$,env){
|
|
593
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
594
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._get_lock[goog.typeOf(x__5350__auto__)]);
|
|
595
|
+
if((!((m__5351__auto__ == null)))){
|
|
596
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5351__auto__.call(null, this$,env));
|
|
597
|
+
} else {
|
|
598
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._get_lock["_"]);
|
|
599
|
+
if((!((m__5349__auto__ == null)))){
|
|
600
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5349__auto__.call(null, this$,env));
|
|
601
|
+
} else {
|
|
602
|
+
throw cljs.core.missing_protocol("PBackingBlob.-get-lock",this$);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
/**
|
|
607
|
+
* Acquire a store specific lock on the blob. This is needed for access to the store from concurrent processes.
|
|
608
|
+
*/
|
|
609
|
+
konserve.impl.storage_layout._get_lock = (function konserve$impl$storage_layout$_get_lock(this$,env){
|
|
610
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_get_lock$arity$2 == null)))))){
|
|
611
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_get_lock$arity$2(this$,env);
|
|
612
|
+
} else {
|
|
613
|
+
return konserve$impl$storage_layout$PBackingBlob$_get_lock$dyn_50939(this$,env);
|
|
614
|
+
}
|
|
615
|
+
});
|
|
616
|
+
|
|
617
|
+
var konserve$impl$storage_layout$PBackingBlob$_read_header$dyn_50941 = (function (this$,env){
|
|
618
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
619
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._read_header[goog.typeOf(x__5350__auto__)]);
|
|
620
|
+
if((!((m__5351__auto__ == null)))){
|
|
621
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5351__auto__.call(null, this$,env));
|
|
622
|
+
} else {
|
|
623
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._read_header["_"]);
|
|
624
|
+
if((!((m__5349__auto__ == null)))){
|
|
625
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5349__auto__.call(null, this$,env));
|
|
626
|
+
} else {
|
|
627
|
+
throw cljs.core.missing_protocol("PBackingBlob.-read-header",this$);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
/**
|
|
632
|
+
* Read header array.
|
|
633
|
+
*/
|
|
634
|
+
konserve.impl.storage_layout._read_header = (function konserve$impl$storage_layout$_read_header(this$,env){
|
|
635
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_read_header$arity$2 == null)))))){
|
|
636
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_read_header$arity$2(this$,env);
|
|
637
|
+
} else {
|
|
638
|
+
return konserve$impl$storage_layout$PBackingBlob$_read_header$dyn_50941(this$,env);
|
|
639
|
+
}
|
|
640
|
+
});
|
|
641
|
+
|
|
642
|
+
var konserve$impl$storage_layout$PBackingBlob$_read_meta$dyn_50946 = (function (this$,meta_size,env){
|
|
643
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
644
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._read_meta[goog.typeOf(x__5350__auto__)]);
|
|
645
|
+
if((!((m__5351__auto__ == null)))){
|
|
646
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$3(this$,meta_size,env) : m__5351__auto__.call(null, this$,meta_size,env));
|
|
647
|
+
} else {
|
|
648
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._read_meta["_"]);
|
|
649
|
+
if((!((m__5349__auto__ == null)))){
|
|
650
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$3(this$,meta_size,env) : m__5349__auto__.call(null, this$,meta_size,env));
|
|
651
|
+
} else {
|
|
652
|
+
throw cljs.core.missing_protocol("PBackingBlob.-read-meta",this$);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
/**
|
|
657
|
+
* Read metadata array.
|
|
658
|
+
*/
|
|
659
|
+
konserve.impl.storage_layout._read_meta = (function konserve$impl$storage_layout$_read_meta(this$,meta_size,env){
|
|
660
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_read_meta$arity$3 == null)))))){
|
|
661
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_read_meta$arity$3(this$,meta_size,env);
|
|
662
|
+
} else {
|
|
663
|
+
return konserve$impl$storage_layout$PBackingBlob$_read_meta$dyn_50946(this$,meta_size,env);
|
|
664
|
+
}
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
var konserve$impl$storage_layout$PBackingBlob$_read_value$dyn_50952 = (function (this$,meta_size,env){
|
|
668
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
669
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._read_value[goog.typeOf(x__5350__auto__)]);
|
|
670
|
+
if((!((m__5351__auto__ == null)))){
|
|
671
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$3(this$,meta_size,env) : m__5351__auto__.call(null, this$,meta_size,env));
|
|
672
|
+
} else {
|
|
673
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._read_value["_"]);
|
|
674
|
+
if((!((m__5349__auto__ == null)))){
|
|
675
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$3(this$,meta_size,env) : m__5349__auto__.call(null, this$,meta_size,env));
|
|
676
|
+
} else {
|
|
677
|
+
throw cljs.core.missing_protocol("PBackingBlob.-read-value",this$);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
/**
|
|
682
|
+
* Read serialized edn value array.
|
|
683
|
+
*/
|
|
684
|
+
konserve.impl.storage_layout._read_value = (function konserve$impl$storage_layout$_read_value(this$,meta_size,env){
|
|
685
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_read_value$arity$3 == null)))))){
|
|
686
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_read_value$arity$3(this$,meta_size,env);
|
|
687
|
+
} else {
|
|
688
|
+
return konserve$impl$storage_layout$PBackingBlob$_read_value$dyn_50952(this$,meta_size,env);
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
|
|
692
|
+
var konserve$impl$storage_layout$PBackingBlob$_read_binary$dyn_50959 = (function (this$,meta_size,locked_cb,env){
|
|
693
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
694
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._read_binary[goog.typeOf(x__5350__auto__)]);
|
|
695
|
+
if((!((m__5351__auto__ == null)))){
|
|
696
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$4(this$,meta_size,locked_cb,env) : m__5351__auto__.call(null, this$,meta_size,locked_cb,env));
|
|
697
|
+
} else {
|
|
698
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._read_binary["_"]);
|
|
699
|
+
if((!((m__5349__auto__ == null)))){
|
|
700
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$4(this$,meta_size,locked_cb,env) : m__5349__auto__.call(null, this$,meta_size,locked_cb,env));
|
|
701
|
+
} else {
|
|
702
|
+
throw cljs.core.missing_protocol("PBackingBlob.-read-binary",this$);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
});
|
|
706
|
+
/**
|
|
707
|
+
* Read binary object and pass to locked-cb.
|
|
708
|
+
*/
|
|
709
|
+
konserve.impl.storage_layout._read_binary = (function konserve$impl$storage_layout$_read_binary(this$,meta_size,locked_cb,env){
|
|
710
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_read_binary$arity$4 == null)))))){
|
|
711
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_read_binary$arity$4(this$,meta_size,locked_cb,env);
|
|
712
|
+
} else {
|
|
713
|
+
return konserve$impl$storage_layout$PBackingBlob$_read_binary$dyn_50959(this$,meta_size,locked_cb,env);
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
var konserve$impl$storage_layout$PBackingBlob$_write_header$dyn_50973 = (function (this$,header_arr,env){
|
|
718
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
719
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._write_header[goog.typeOf(x__5350__auto__)]);
|
|
720
|
+
if((!((m__5351__auto__ == null)))){
|
|
721
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$3(this$,header_arr,env) : m__5351__auto__.call(null, this$,header_arr,env));
|
|
722
|
+
} else {
|
|
723
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._write_header["_"]);
|
|
724
|
+
if((!((m__5349__auto__ == null)))){
|
|
725
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$3(this$,header_arr,env) : m__5349__auto__.call(null, this$,header_arr,env));
|
|
726
|
+
} else {
|
|
727
|
+
throw cljs.core.missing_protocol("PBackingBlob.-write-header",this$);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
/**
|
|
732
|
+
* Write header array.
|
|
733
|
+
*/
|
|
734
|
+
konserve.impl.storage_layout._write_header = (function konserve$impl$storage_layout$_write_header(this$,header_arr,env){
|
|
735
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_write_header$arity$3 == null)))))){
|
|
736
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_write_header$arity$3(this$,header_arr,env);
|
|
737
|
+
} else {
|
|
738
|
+
return konserve$impl$storage_layout$PBackingBlob$_write_header$dyn_50973(this$,header_arr,env);
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
|
|
742
|
+
var konserve$impl$storage_layout$PBackingBlob$_write_meta$dyn_50976 = (function (this$,meta_arr,env){
|
|
743
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
744
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._write_meta[goog.typeOf(x__5350__auto__)]);
|
|
745
|
+
if((!((m__5351__auto__ == null)))){
|
|
746
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$3(this$,meta_arr,env) : m__5351__auto__.call(null, this$,meta_arr,env));
|
|
747
|
+
} else {
|
|
748
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._write_meta["_"]);
|
|
749
|
+
if((!((m__5349__auto__ == null)))){
|
|
750
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$3(this$,meta_arr,env) : m__5349__auto__.call(null, this$,meta_arr,env));
|
|
751
|
+
} else {
|
|
752
|
+
throw cljs.core.missing_protocol("PBackingBlob.-write-meta",this$);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
/**
|
|
757
|
+
* Write metadata array.
|
|
758
|
+
*/
|
|
759
|
+
konserve.impl.storage_layout._write_meta = (function konserve$impl$storage_layout$_write_meta(this$,meta_arr,env){
|
|
760
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_write_meta$arity$3 == null)))))){
|
|
761
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_write_meta$arity$3(this$,meta_arr,env);
|
|
762
|
+
} else {
|
|
763
|
+
return konserve$impl$storage_layout$PBackingBlob$_write_meta$dyn_50976(this$,meta_arr,env);
|
|
764
|
+
}
|
|
765
|
+
});
|
|
766
|
+
|
|
767
|
+
var konserve$impl$storage_layout$PBackingBlob$_write_value$dyn_50983 = (function (this$,value_arr,meta_size,env){
|
|
768
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
769
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._write_value[goog.typeOf(x__5350__auto__)]);
|
|
770
|
+
if((!((m__5351__auto__ == null)))){
|
|
771
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$4(this$,value_arr,meta_size,env) : m__5351__auto__.call(null, this$,value_arr,meta_size,env));
|
|
772
|
+
} else {
|
|
773
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._write_value["_"]);
|
|
774
|
+
if((!((m__5349__auto__ == null)))){
|
|
775
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$4(this$,value_arr,meta_size,env) : m__5349__auto__.call(null, this$,value_arr,meta_size,env));
|
|
776
|
+
} else {
|
|
777
|
+
throw cljs.core.missing_protocol("PBackingBlob.-write-value",this$);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
/**
|
|
782
|
+
* Write value array.
|
|
783
|
+
*/
|
|
784
|
+
konserve.impl.storage_layout._write_value = (function konserve$impl$storage_layout$_write_value(this$,value_arr,meta_size,env){
|
|
785
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_write_value$arity$4 == null)))))){
|
|
786
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_write_value$arity$4(this$,value_arr,meta_size,env);
|
|
787
|
+
} else {
|
|
788
|
+
return konserve$impl$storage_layout$PBackingBlob$_write_value$dyn_50983(this$,value_arr,meta_size,env);
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
|
|
792
|
+
var konserve$impl$storage_layout$PBackingBlob$_write_binary$dyn_50991 = (function (this$,meta_size,blob,env){
|
|
793
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
794
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._write_binary[goog.typeOf(x__5350__auto__)]);
|
|
795
|
+
if((!((m__5351__auto__ == null)))){
|
|
796
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$4(this$,meta_size,blob,env) : m__5351__auto__.call(null, this$,meta_size,blob,env));
|
|
797
|
+
} else {
|
|
798
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._write_binary["_"]);
|
|
799
|
+
if((!((m__5349__auto__ == null)))){
|
|
800
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$4(this$,meta_size,blob,env) : m__5349__auto__.call(null, this$,meta_size,blob,env));
|
|
801
|
+
} else {
|
|
802
|
+
throw cljs.core.missing_protocol("PBackingBlob.-write-binary",this$);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
/**
|
|
807
|
+
* Write binary blob.
|
|
808
|
+
*/
|
|
809
|
+
konserve.impl.storage_layout._write_binary = (function konserve$impl$storage_layout$_write_binary(this$,meta_size,blob,env){
|
|
810
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingBlob$_write_binary$arity$4 == null)))))){
|
|
811
|
+
return this$.konserve$impl$storage_layout$PBackingBlob$_write_binary$arity$4(this$,meta_size,blob,env);
|
|
812
|
+
} else {
|
|
813
|
+
return konserve$impl$storage_layout$PBackingBlob$_write_binary$dyn_50991(this$,meta_size,blob,env);
|
|
814
|
+
}
|
|
815
|
+
});
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* @interface
|
|
820
|
+
*/
|
|
821
|
+
konserve.impl.storage_layout.PBackingLock = function(){};
|
|
822
|
+
|
|
823
|
+
var konserve$impl$storage_layout$PBackingLock$_release$dyn_51004 = (function (this$,env){
|
|
824
|
+
var x__5350__auto__ = (((this$ == null))?null:this$);
|
|
825
|
+
var m__5351__auto__ = (konserve.impl.storage_layout._release[goog.typeOf(x__5350__auto__)]);
|
|
826
|
+
if((!((m__5351__auto__ == null)))){
|
|
827
|
+
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5351__auto__.call(null, this$,env));
|
|
828
|
+
} else {
|
|
829
|
+
var m__5349__auto__ = (konserve.impl.storage_layout._release["_"]);
|
|
830
|
+
if((!((m__5349__auto__ == null)))){
|
|
831
|
+
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(this$,env) : m__5349__auto__.call(null, this$,env));
|
|
832
|
+
} else {
|
|
833
|
+
throw cljs.core.missing_protocol("PBackingLock.-release",this$);
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
/**
|
|
838
|
+
* Release this lock.
|
|
839
|
+
*/
|
|
840
|
+
konserve.impl.storage_layout._release = (function konserve$impl$storage_layout$_release(this$,env){
|
|
841
|
+
if((((!((this$ == null)))) && ((!((this$.konserve$impl$storage_layout$PBackingLock$_release$arity$2 == null)))))){
|
|
842
|
+
return this$.konserve$impl$storage_layout$PBackingLock$_release$arity$2(this$,env);
|
|
843
|
+
} else {
|
|
844
|
+
return konserve$impl$storage_layout$PBackingLock$_release$dyn_51004(this$,env);
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
//# sourceMappingURL=konserve.impl.storage_layout.js.map
|