localdb 0.0.3 icon indicating copy to clipboard operation
localdb: ^0.0.3 copied to clipboard

JsonDb is a library to make it easier to create local databases and currently only supports json. I created this library because it was inspired by the library lowdb.

LOCAL DB #


Sosial Media #

Custom badge Custom badge Custom badge Custom badge Custom badge Custom badge

Donate #

ID: Jika Anda Menyukai karya saya dan ingin memberikan dana untuk saya membeli beberapa snack silahkan donasi seberapapun itu akan saya terima dan terima kasih banyak ya.

EN: If you like my work and want to give me funds to buy some snacks, please donate any amount I will accept and thank you very much.

Github-sponsors-Badge Paypal-Badge

Framework #

ID: Project ini Menggunakan beberapa bahasa framework sebagai berikut.

EN: This project uses several framework as follows.

Custom badge

Language Code #

ID: Project ini Menggunakan beberapa bahasa code program sebagai berikut.

EN: This project uses several programming language languages as follows.

Dart-Badge

Introduction #

ID: localdb adalah library untuk mempermudah dalam membuat database local.

Saya membuat library ini karena terinspirasi dari library lowdb.

EN: localdb is a library to make it easier to create local databases.

I created this library because it was inspired by the lirbary lowdb.


Use This Library #

ID: untuk anda yang ingin mencoba menggunakan source code ini, silahkan ikuti step berikut ini :

EN: for those of you who want to try to using this source code, please follow these steps :

Install Library
flutter pub add localdb
Quickstart
  • jsondb

      import 'dart:io';
      import 'package:localdb/jsondb.dart';
      import 'package:localdb/file/file.dart';
    
      void main() async {
        var pathFile = "${Directory.current.path}/data.json";
        var db = jsondb(FileSync(pathFile));
        db.defaults({
          "azka": "oke",
          "array": [
            {"key": "azka"},
            {"key": "kunci"},
            {"key": "bagus"}
          ],
          "json": {}
        }).write();
    
        db.get("array").find({"key": "kunci"}).assign(
        {"key": "kuncibaru", "post": "5", "data": "oke"}).write();
    
        db.get("array").remove({"key": "bagus"}).write();
    
        db.set("info.links.youtube", "youtube.com").write();
    
        db.get("array").push({"key": "asaooaoao"}).write();
    
        print(db.get("array").find({"post": "5"}).value());
    
        print(db.get("array").value());
    
        print(db.value());
      }
    

  • yamldb


  • csvdb


  • xmldb



Contribution #

The project has a separate contribution file. Please adhere to the steps listed in the separate contributions file

Contact #

You can reach me on Telegram

License #

Licence

3
likes
120
pub points
33%
popularity

Publisher

unverified uploader

JsonDb is a library to make it easier to create local databases and currently only supports json. I created this library because it was inspired by the library lowdb.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

More

Packages that depend on localdb