index.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!DOCTYPE html><html><head><meta charset="utf-8" />
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  3. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  4. <meta name="description" content="" /><meta name="author" content="Maxim Sokhatsky" />
  5. <title>KVS</title>
  6. <link rel="stylesheet" href="https://n2o.dev/blank.css" />
  7. <link rel="stylesheet" href="https://n2o.dev/zima.css" />
  8. </head><body><nav>
  9. <a href="https://n2o.dev">DEV</a>
  10. <a href="https://kvs.n2o.dev" style="background:#ededed;">KVS</a>
  11. <div class="dropdown">
  12. <a onclick="drop()" class="dropbtn">EN</a>
  13. <div id="dropdown" class="dropdown-content">
  14. <a href="https://n2o.dev/deps/kvs/man/ua/index.html">UA</a>
  15. <a href="#">EN</a>
  16. </div>
  17. </div>
  18. </nav><header>
  19. <a href="https://github.com/synrc/kvs"><img src="https://openmoji.org/data/color/svg/1F4BF.svg"/></a>
  20. <h1>KVS</h1>
  21. </header><aside>
  22. <article>
  23. <section>
  24. <h3>SYNOPSIS</h3>
  25. <div>KVS is the light version of client interface on top of BTREE database
  26. abstractions strive to support the basic features: </div>
  27. <div>
  28. <ul><li>Polymorphic tuples aka extensible records;</li>
  29. <li>Basic schema for chain storage;</li>
  30. <li>Backends: MNESIA, FS, ROCKSDB, SPANDB;</li>
  31. <li>Extremely compact and battle-tested: 500 LOC.</li></ul>
  32. </div>
  33. <div>This is an essence and fruit of KVS; the abstract term interface
  34. with naive yet productive stream implementation. Useful for simple
  35. blockchains, messaging, storage, processing systems, and banking industry.
  36. KVS is used in BPE and BANK applications.</div><br/>
  37. <figure>
  38. <code> $ mad get kvs &#38;&#38; cd kvs
  39. $ mad com pla rep
  40. > kvs:join().</code>
  41. </figure>
  42. </section>
  43. <section>
  44. <h3>MODULES</h3>
  45. <div><ul><li><a href="man/kvs.htm">KVS</a></li>
  46. <li><a href="man/kvs_stream.htm">STREAM</a></li>
  47. <li><a href="man/kvs_fs.htm">FS</a></li>
  48. <li><a href="man/kvs_mnesia.htm">MNESIA</a></li>
  49. <li><a href="man/kvs_rocks.htm">ROCKS</a></li>
  50. <li><a href="man/kvs_st.htm">ST</a></li></ul></div>
  51. <br />
  52. <div>
  53. NOV 2021 © <a href="https://github.com/5HT">5HT</a> ISC<br />
  54. VER 8.10 8.4 8.3
  55. </div>
  56. </section>
  57. <section>
  58. </section>
  59. </article>
  60. </aside><main>
  61. <section>
  62. <h3>SESSION</h3>
  63. <figure><code>
  64. > kvs:join().
  65. ok
  66. > kvs:check().
  67. ok
  68. > kvs:all(reader).
  69. [{reader,1555175169121817000,0,[],[],
  70. {list,1555175169120161000},
  71. 0},
  72. {reader,1555175169121249000,0,[],[],
  73. {list,1555175169120161000},
  74. 0}]
  75. > rr(kvs).
  76. [emails,id_seq,iter,kvs,reader,schema,table,writer]
  77. > kvs:save(kvs:reader({list,1555175169120161000})).
  78. #reader{id = 1555175244188986000,pos = 0,
  79. cache = {emails,1555175169122304000},
  80. args = [],
  81. feed = {list,1555175169120161000},
  82. dir = 0}
  83. > kvs:take(kvs:bot((kvs:load_reader(1555175244188986000))#reader{args=-1})).
  84. #reader{id = 1555175244188986000,pos = 5,
  85. cache = {emails,1555175169127279000},
  86. args = [#emails{id = 1555175169127279000,next = [],
  87. prev = 1555175169126314000,email = []},
  88. #emails{id = 1555175169126314000,next = 1555175169127279000,
  89. prev = 1555175169125227000,email = []},
  90. #emails{id = 1555175169125227000,next = 1555175169126314000,
  91. prev = 1555175169123405000,email = []},
  92. #emails{id = 1555175169123405000,next = 1555175169125227000,
  93. prev = 1555175169122304000,email = []},
  94. #emails{id = 1555175169122304000,next = 1555175169123405000,
  95. prev = [],email = []}],
  96. feed = {list,1555175169120161000},
  97. dir = 0}
  98. </code></figure>
  99. </section>
  100. <section>
  101. <a name="plugin"></a><h3>CONTRIBUTORS</h3>
  102. <div>
  103. <ul><li><a href="https://github.com/5HT">5HT</a> — Namdak Tonpa</li><li><a href="https://github.com/proger">proger</a> — Vlad Ki</li><li><a href="https://github.com/doxtop">doxtop</a> — Andrii Zadorozhnii</li><li><a href="https://github.com/cryoflamer">cryoflamer</a> — Yuri Maslovsky</li><li><a href="https://github.com/qomputer">qomputer</a> — Igor Kharin</li></ul></div>
  104. <br /><br />
  105. </section>
  106. </main><footer>
  107. Made with <span class="heart">❤</span> to N2O
  108. </footer>
  109. <script>function drop(){document.getElementById("dropdown").classList.toggle("show");}</script>
  110. </body></html>