amix_database 0.0.1 copy "amix_database: ^0.0.1" to clipboard
amix_database: ^0.0.1 copied to clipboard

A package for Saving your Data inside local System.

A package for Saving your Data inside local System. this package will make sure that your files are safe.

Features #

you can use this DataBase for your Dart projects. this DataBase have a security system This system will detect changes inside DataBase files.

Getting started #

Add the following to your pubspec.yaml file.

dependencies:
  amix_database: ^0.0.1

Import the package.

import 'package:amix_database/amix_database.dart'

Usage #


import 'package:amix_database/amix_database.dart';

void main() async {
  dataBasePath = "path"; //add a path for DataBase

  var myAmDb = AmixDataBaseFile("db"); //create your DataBase
  await myAmDb.exists(); //checking if DataBase exists
  await myAmDb.create(); //creating DataBase folders and files
  await myAmDb.startConfig(); //start configing the DataBase
  await myAmDb.clear(); //clear all data inside DataBase
  await myAmDb.writeNewObject(key: "exampleKey", object: "example"); //create a object inside dataBase
  var result = await myAmDb.get(key: "exampleKey"); //get a Object
  await myAmDb.editObject(key:"exampleKey",object:"hello World!!"); //edit the Object
  await myAmDb.removeObject(key:"exampleKey"); //move the Object to DataBase recycle bin
  await myAmDb.clean(); //remove all of Objects inside recycle bin
  await myAmDb.delete(); //delete DataBase
}

Additional information #

0
likes
140
pub points
0%
popularity

Publisher

unverified uploader

A package for Saving your Data inside local System.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on amix_database