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