index.html 4.5 KB

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