eijiotieno-official / slow_store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SlowStore

SlowStore package is a versatile local data storage solution for Flutter developers, designed to make data persistence with your Flutter applications easy and efficient.

Key Features

  • Store data as key-value pairs.
  • Support for various data types, including strings, num, boolean, date time, map, list.
  • Retrieve specific data or entire data in the database.
  • Easily create, update or delete stored data.
  • Easily rename or delete a database.
  • Asynchronous operations for smooth user experiences.
  • Highly customizable to adapt to your specific app requirements.

NOTE : DateTime is converted to string for encoding, use DateTime.parse("time")

Installation

flutter pub add slow_store

Using

Import the Package: Import the package in your Dart code.

import 'package:slow_store/slow_store.dart';

Add Data

  • Create data into a database with a specified id, if none is provided, one will be generated for the data created.
SlowStore.database(name: "name").entry(id).create(data: data);

Update Data

  • Update data of the specified id in the specified database.
SlowStore.database(name: "name").entry(id).update(data: data);

Read Data

  • Get a data in the specified id or all data in the specified database, depending on if the id is provided or not.

Read a single enty's data

SlowStore.database(name: "name").entry(id).read();

Read all data in the database

SlowStore.database(name: "name").entry().read();

Delete data

SlowStore.database(name: "name").entry(id).delete();

Delete a database

SlowStore.database(name: name).delete();

Rename a database

SlowStore.database(name: oldName).rename(newName: newName);

Contributing

Contributions are welcome! If you find any bugs or want to add new features, feel free to submit issues or pull requests.

About

License:MIT License


Languages

Language:C++ 37.0%Language:CMake 30.1%Language:Dart 24.5%Language:Swift 3.0%Language:HTML 3.0%Language:C 2.3%Language:Kotlin 0.2%Language:Objective-C 0.1%