资 源 简 介
Introduction
Init Module
>import jongos
>db = jongos.jongos()
Load JSON file
> db.load("file\_name.json")
Show current loaded db stats
> db.stats()
Refresh current loaded JSON file
> db.refresh()
Save current in-memory db into current loaded JSON file
> db.save()
Insert new record
> db.insert(json\_item)
Delete record
> db.remove(query)
Update record with partial information
> db.update(query, {"$set": json\_item})
Update record with all new information
> db.update(query, json\_item)
Find a rows
> db.find(query)
Count a rows that match query
> db.find(query).count()
Group a rows with a field ke