0 purchases
dynojsonstore
DynoJsonStore
A tiny, fully code integrated, dynamic NOSQL database management system that uses JSON.
Reading and Writing Data #
Easiest and the Quickest way to save app data using the legendary JSON format.
All you need is a DynoJsonStore object.
Writing #
import 'package:dynojsonstore/dynojsonstore.dart';
void main() async {
DynoJsonStore store = DynoJsonStore(storePath: 'settings.json');
await store.put('author', 'omegaui');
}
copied to clipboard
Or write data without async
import 'package:dynojsonstore/dynojsonstore.dart';
void main() {
DynoJsonStore store = DynoJsonStore(storePath: 'settings.json');
store.putSync('author', 'omegaui');
}
copied to clipboard
Reading #
import 'package:dynojsonstore/dynojsonstore.dart';
void main() {
DynoJsonStore store = DynoJsonStore(storePath: 'settings.json');
print(store.get('author'));
}
copied to clipboard
Automatic management for key<->iterable data pair #
import 'package:dynojsonstore/dynojsonstore.dart';
void main() {
DynoJsonStore store = DynoJsonStore(storePath: 'settings.json');
List<dynamic> list = ['{"items": 2}', '{"items": 1}', '{"items": 3}'];
store.putSync('iterable-data', list);
List<dynamic> listOut = store.get('iterable-data');
for(var itemData in listOut){
print(itemData['items']);
}
}
copied to clipboard
Getting started #
Run
flutter pub add dynojsonstore
and you are ready to rock.
Usage #
import 'package:dynojsonstore/dynojsonstore.dart';
void main() {
DynoJsonStore store = DynoJsonStore(storePath: 'settings.json');
store.putSync('author', 'omegaui');
}
copied to clipboard
Next Steps #
What's planned for next version?
await your.ideas();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.