isar 0.0.1 isar: ^0.0.1 copied to clipboard
Super Fast Cross Platform Database for Flutter & Web Apps
Isar Database
Getting Started • Documentation • Examples • Support & Ideas • Pub.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()