index.html 4.6 KB

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