在内存数据存储中有Clojure吗? [英] Is there a Clojure in memory data store?

查看:95
本文介绍了在内存数据存储中有Clojure吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我主要在Node中编程,并且像文档存储,但是我想先对客户端和服务器之间的数据调用进行原型化。我使用 lowdb da-base 过去设置快速Json数据存储。是否有类似Clojure的东西?

I program mostly in Node, and like document stores, but I'd like to prototype the data calls between the client and the server first. I've used lowdb and da-base in the past to setup a quick Json data store. Is there something similar for Clojure?

推荐答案

Datascript 似乎是一个完美的(虽然命名不错)适合您的需要。基本上,它是一个轻量级的内存存储设计后Datomic。使用原子图原子方法,你很快就会发现自己写了一些奇怪的代码进行选择,id管理等。Datascript负责这些东西,并允许你轻松地编写复杂的查询,仍然几乎与地图一样轻量级在原子中。

Datascript seems like a perfect (though poorly named) fit for your needs. Basically, it's a lightweight in-memory store designed after Datomic. With a map-in-an-atom approach you very quickly would find yourself writing quirky code for selection, id management, etc. Datascript takes care of such stuff and allows you to write complex queries easily, still being almost as lightweight as a map in an atom.

这篇关于在内存数据存储中有Clojure吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆