Flutter database inspector storage_view

About package

Flutter inspector tool for any database, storage and shared_preferences.
Check and modify database values from UI of application.

It’s fast introduction of storage_view package.

Motivation

Create one tool to inspe…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Stanislav Ilin

Image description

About package

Flutter inspector tool for any database, storage and shared_preferences.
Check and modify database values from UI of application.

It's fast introduction of storage_view package.

Motivation

Create one tool to inspect and interact with any database is the main thing of package.

Getting started

Add dependency

dependencies:
  storage_view: ^0.1.0-dev.1

Add import package

import 'package:storage_view/storage_view.dart';

Implement driver

The package uses a driver StorageDriver to interact with the database.

In order to connect your database you should use one of available drivers:

Or create your own StorageDriver implementation like there:

class MockStorageDriver implements StorageDriver {
  final _data = <String, dynamic>{
    'test_id' : 'test',
  };

  @override
  FutureOr<Set<String>> getKeys<String>() {
    return _data.keys.toSet() as Set<String>;
  }

  @override
  FutureOr<T?> read<T>(String key) {
    return _data[key] as T;
  }

  @override
  FutureOr<void> write<T>({required String key, required T value}) {
    _data[key] = value;
  }

  @override
  FutureOr<void> delete(String key) {
    _data.remove(key);
  }
}

Additional information

The project is under development and ready for your pull-requests and issues.
Thank you for support!

⛔️ It is very important to get feedback about the project. Therefore, write your opinion in the comments. Will you use this in the future ?

😎 Go to the GitHub repository page!
Show some ❤️ and star the repo to support the project!


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Stanislav Ilin


Print Share Comment Cite Upload Translate Updates
APA

Stanislav Ilin | Sciencx (2022-09-12T18:57:49+00:00) Flutter database inspector storage_view. Retrieved from https://www.scien.cx/2022/09/12/flutter-database-inspector-storage_view/

MLA
" » Flutter database inspector storage_view." Stanislav Ilin | Sciencx - Monday September 12, 2022, https://www.scien.cx/2022/09/12/flutter-database-inspector-storage_view/
HARVARD
Stanislav Ilin | Sciencx Monday September 12, 2022 » Flutter database inspector storage_view., viewed ,<https://www.scien.cx/2022/09/12/flutter-database-inspector-storage_view/>
VANCOUVER
Stanislav Ilin | Sciencx - » Flutter database inspector storage_view. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/09/12/flutter-database-inspector-storage_view/
CHICAGO
" » Flutter database inspector storage_view." Stanislav Ilin | Sciencx - Accessed . https://www.scien.cx/2022/09/12/flutter-database-inspector-storage_view/
IEEE
" » Flutter database inspector storage_view." Stanislav Ilin | Sciencx [Online]. Available: https://www.scien.cx/2022/09/12/flutter-database-inspector-storage_view/. [Accessed: ]
rf:citation
» Flutter database inspector storage_view | Stanislav Ilin | Sciencx | https://www.scien.cx/2022/09/12/flutter-database-inspector-storage_view/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.