[ANN] New NoSQL library available

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SoapDog
Posts: 84
Joined: Sun Apr 09, 2006 10:03 pm
Contact:

[ANN] New NoSQL library available

Post by SoapDog » Tue Aug 28, 2012 6:15 pm

Hey Folks,

I am releasing a beta version of the Data Storage Lib, a local NoSQL data storage library. It is an add-on for my DB Lib and uses SQLite for the storage medium.

It can store any kind of information as long as it is inside an array variable. It doesn't require a schema or a defined set of fields. You can mix and match any kind of array in the same storage file. Let me give you some examples, opening a new storage:

dsOpen "myStorage", "com.andregarzia.example"

Saving an item:

put "32" into tA["age"]
put "andre" into tA["first_name"]
put "garzia" into tA["last_name"]
dsSave "myStorage", tA
if "dsErr" is not in the result then
put the result into tKeyForLastSavedItem
end if

Retrieving an item back:

put dsGet("myStorage", tKeyForLastSavedItem) into tA

This all works without the need to touch a SQL database. You can learn more by browsing the current API reference for the Data Storage Lib at:

http://andregarzia.com/aux/datastorageapi/

You can also check the little guide at

http://andregarzia.com/aux/dblibguide/
http://andregarzia.com/files/DBLibGuide.pdf

This library is BETA but is passing my little tests cases.

This is a true NoSQL solution for LiveCode and writes your data to safe folders in any system. You can save an item, save a bunch of items, retrieve keys, items, and do normal crud operations.

The Data Storage Lib is be bundled with DB Lib, so all current owners of DB Lib will have it.

Hope to hear feedback and opinions!

Cheers

--
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
http://www.andregarzia.com

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: [ANN] New NoSQL library available

Post by Klaus » Wed Aug 29, 2012 12:25 pm

Hi Andre,

well done!

but ONE announcement in the CORRECT forum ("Announcements", one of the only fora where you did not post it!)
would have been enough 8)


Best

Klaus

SoapDog
Posts: 84
Joined: Sun Apr 09, 2006 10:03 pm
Contact:

Re: [ANN] New NoSQL library available

Post by SoapDog » Wed Aug 29, 2012 9:33 pm

Klaus,

I thought announcements was just for mothership announcements. Good to know that we can just post there. I decided to cross post to relevant forums because I keep hearing that people simply don't know about the third-party resources available to them. The lack of a unified location for third-party non-runrev-market products makes really hard for people to find our stuff. Next time, I will post to announcements. =)

Cheers
andre
http://www.andregarzia.com

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: [ANN] New NoSQL library available

Post by Klaus » Wed Aug 29, 2012 9:55 pm

Good boy! :D

Post Reply