Does Node.js have some kind of native data persistence?

1,704 views
Skip to first unread message

Alan Hoffmeister

unread,
Sep 15, 2012, 10:25:13 PM9/15/12
to nodejs
Dear fellows,

We all know that javascript from modern browsers allow us to persist
data by local storage methods.
I hadn't success with my Google search so I thought it would be better
to ask here before move on using the fs API, so: does Node.js provide
some kind of native data persistence? I know that I could use
databases/cache systems for this, but I think that I wont hurt anyone
asking this.

Thanks!

--
Att,
Alan Hoffmeister

Srirangan

unread,
Sep 15, 2012, 10:25:52 PM9/15/12
to nod...@googlegroups.com
Files?

Srirangan  |  +91 9711 477 595  |  About   GitHub  LinkedIn  Twitter  |  Review19  "Collaborate & Track Decisions"



--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Alan Hoffmeister

unread,
Sep 15, 2012, 10:29:31 PM9/15/12
to nod...@googlegroups.com
It would be nice don't touch the file system api, at least directly...

--
Att,
Alan Hoffmeister


2012/9/15 Srirangan <srir...@gmail.com>:

Srirangan

unread,
Sep 15, 2012, 10:30:47 PM9/15/12
to nod...@googlegroups.com
I know. Can't think on any other 'native' persistence source.

What are you trying to accomplish? Why not use DBs or Caches?

- Sri

Srirangan  |  +91 9711 477 595  |  About   GitHub  LinkedIn  Twitter  |  Review19  "Collaborate & Track Decisions"


Rod Vagg

unread,
Sep 15, 2012, 10:46:27 PM9/15/12
to nod...@googlegroups.com

https://github.com/rvagg/node-levelup is a lighter-than-db option, supports storing everything from Buffers up to JSON serialized data in a fast and slightly compressed store. In fact, the store, LevelDB, is the same used in Chrome's local storage backend.

Alan Hoffmeister

unread,
Sep 15, 2012, 11:17:26 PM9/15/12
to nod...@googlegroups.com
That's something very very cool Vagg, but as I could see there is no Windows support, righ?
--
--
Att,
Alan Hoffmeister

Rod Vagg

unread,
Sep 15, 2012, 11:20:10 PM9/15/12
to nod...@googlegroups.com

There's not reason there couldn't be Windows support, it just needs some work in the GYP files to make it happen, LevelDB & Snappy both compile on Windows and I've preserved some basic Windows stuff in their GYP files. Perhaps you'd like to lend a hand?

Alan Hoffmeister

unread,
Sep 16, 2012, 12:30:07 AM9/16/12
to nod...@googlegroups.com
I just sucks at C/C++ programming but of course I'll do what I can for help.
If someone else would like to contribute, this is the GitHub
https://github.com/rvagg/node-levelup/issues/5

Thanks Rod for the amazing project!
--
Att,
Alan Hoffmeister


2012/9/16 Rod Vagg <r...@vagg.org>:
Reply all
Reply to author
Forward
0 new messages