drift_inspector 1.0.0 copy "drift_inspector: ^1.0.0" to clipboard
drift_inspector: ^1.0.0 copied to clipboard

A dart library to enable development time inspection and modification of your drift databases

Drift inspector dart library

Helper library for drift databases, enables the drift inspector intellij plugin to inspect and edit your drift databases during development

Requires the database inspector plugin from the intellij marketplace to work.

Download plugin here

Usage #

A simple usage example:

import 'package:drift_inspector/drift_inspector.dart';
import 'drift.dart';

main() async {
  final database = Database(...); //Generated drift database
  
  final driftInspectorBuilder = DriftInspectorBuilder()
      ..bundleId = 'com.example.text'
      ..icon = 'flutter'
      ..addDatabase('example', database);
  final inspector = driftInspectorBuilder.build();
  
  //Start server and announcement server
  await inspector.start();

  //Application code here

  //Optionally shut down server, will stop at end of program anyway
  await inspector.stop();
}

Web support #

Web is only supported as a target to ensure you can build your code. Due to some architectural differences (most notably lack of dart:io support), discovering and communication with a web app is currently not possible.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

4
likes
140
pub points
52%
popularity

Publisher

verified publisherchimerapps.com

A dart library to enable development time inspection and modification of your drift databases

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dart_service_announcement, drift, synchronized, uuid

More

Packages that depend on drift_inspector