Skip to content
pubscout

isar_community_generator

3.4.1, released 5 weeks ago by isar-community.dev

Code generator for the Isar Database to find and process classes annotated with @Collection.

$ flutter pub add isar_community_generator
Source repository

What it does

It is the companion code generator for the Isar Database. It processes classes annotated with @Collection to generate the necessary database schema and querying code.

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

Use it when

  • You are using the Isar Database in your Dart or Flutter project
  • You need to generate database mapping and query code for annotated models

Skip it when

  • You are not using the Isar Database
  • You prefer schema definitions without code generation

Strengths

  • Automates boilerplate code generation for Isar models
  • Integrates seamlessly with the build system

Weaknesses

  • Requires running a build step during development
  • Not documented locally, requires referring to the main Isar repository

Setup

Kind
Pure Dart
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
9

Requires setting up build_runner to generate code alongside isar_community.

not documented

Alternatives

Packages that do the same job and could replace isar_community_generator.

  • sqflite

    If you prefer traditional SQLite databases over NoSQL solutions like Isar.

  • drift

    If you want a robust, type-safe SQLite database with rich reactive queries and migrations.

Works with

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