nodejs mysql 持久化_flydb for node.js:持久化的无缝NodeJS对象数据库存储

flydb for node.js

the fastest slowest database there is.

fastest in terms of easiest to use, there is literally no new API

slowest in terms of performance, this db is extremely slow So why flydb?

Why I made this

I made flydb because I wanted to be able to persist data for some of my projects. In order to do that I need to set up a database. This was a pain and I always dreaded doing it. So I created flydb, the easiest way to save your data but this is not for everyone...

Who is this for?

Flydb is for anyone who wants to create a simple project and needs to persist data but don't want to set up a database. You should use flydb because

flydb is super easy to use

flydb is super easy to migrate

setup takes 5seconds

You shouldn't use flydb because

flydb is not scalable at all

flydb is extremely slow (but really for minor projects, you won't notice a difference)

!IMPORTANT

In order to run this you will need to activate --harmony-proxies, luckily you dont need to install anything on top of node

node --harmony-proxies

##Install

npm install flydb

##Example

var flydb = require('flydb');

flydb.test = "hello world"; //flydb.test will now persist

Change the codes and see if it's still there! you will be amazed!!

var flydb = require('flydb');

console.log(flydb.test);

TODO:

Add testing

Add some more functionality without disrupting it's simplicity, such as allow users to create their own .fdb files on init

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值