Subj : trying to get started with a simple json-db
To : All
From : Garth Grudge
Date : Sat Feb 22 2014 01:55 pm
Hi everyone, I decided to post my question in doveNET because my question is
somewhat general and maybe could be of use to people at a later date.
Basically, I'm just trying to get acquainted with setting up a basic DB to hold
some user values with the user number acting as the index or primary key.
I've got a couple js files that create json-db's, such as synchronetris or
uberblox, however, after browsing the code, I couldn't find any reference to
the creation of the db. I've noticed if you add a DB service in the
services.ini it does not actually create the database at that point after
checking the directories. Anyhow, if there's a point in the code or a
dependency I'm not looking at, I'm willing to investigate that rather than rely
on doveNET for the answer, but should doveNET be so kind as to provide a little
code to get me started, here's what I'd like to be able to do without being
overly complex :
1. Create a test json-db
2. Write a value to the db using USERID number as an index value
3. Retrieve that value from the DB
Out of these 3, #1 is obviously the most important. I think I can figure out
how to work with the DB once it exists as I've read up on JSON schema and read
over json-db at least once(and will probably do a couple more times).
Thanks for any help in advance,
grudge
---
� Synchronet � \1yF\1mU\1cT\1wU\1rR\1gELand : \1w find us through www.grudgemirror.com or grudg