Skip to content
pubscout

drift_local_storage_inspector

0.8.0, released 8 months ago by chimerapps.com

Provides a SQL inspector server for drift databases via the storage_inspector package.

$ flutter pub add drift_local_storage_inspector
Source repository

What it does

Exposes drift databases to the local storage inspector UI, allowing developers to browse tables, run queries, and view data at runtime. It integrates with the storage_inspector server driver to register a SQL server for a given drift database instance.

AI-written summary of version 0.8.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to debug or explore drift database contents during development
  • You want a UI‑based way to run ad‑hoc SQL against a drift database

Skip it when

  • You are building a production app where exposing a SQL server is a security risk
  • You only need simple key‑value storage without SQL

Strengths

  • Works directly with drift 2.x versions
  • Integrates with the IntelliJ local storage inspector plugin
  • No extra code‑generation required

Weaknesses

  • Limited to development/debug builds; not meant for production use
  • Only supports platforms supported by storage_inspector

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
final driver = StorageServerDriver(bundleId: 'com.example.test', icon: '<some icon>');
final db = NativeDatabase.memory();
final driftDb = MyDatabase(db);
final sqlServer = DriftSQLDatabaseServer(id: '1', name: 'SQL server', database: driftDb);
driver.addSQLServer(sqlServer);
await driver.start(paused: false);

Alternatives

Packages that do the same job and could replace drift_local_storage_inspector.

Works with

Packages commonly used together with drift_local_storage_inspector: ones it builds on, ones built on it, and its own family.