Isar Database

Getting StartedDocumentationExamplesSupport & IdeasPub.dev

⚠️ Very unstable and not ready for serious usage ⚠

Schema definition

@Collection()
class Person with IsarObject {

  @Index(unique: true)
  String name;
  
  int age;
}

Query

final isar = await openIsar();

final result = isar.users.where()
  .sortedByName() // use index
  .filter()
  .ageGreaterThan(20)
  .beginGroup()
    .nameEqualTo("Paul")
    .or()
    .nameEqualTo("Lisa")
  .endGroup()
  .findAll()

Libraries

isar
isar_native
isar_web