flite 1.0.2 copy "flite: ^1.0.2" to clipboard
flite: ^1.0.2 copied to clipboard

unlisted

A lightweight ORM package for SQLite in Flutter that uses sqflite internally to simplify database operations.

example/README.md

import 'package:flite/flite.dart';
part 'task_model.g.dart'; // Required for generating the extension.

@Schema(name: 'Task')
class TaskModel with FliteProvider {
  @primary
  final int id;

  final String title;

  final String? description;

  @Foreign("User", "id")
  final int? userId;

  @ignore
  bool isSelected = false;

  // A constructor with named parameters is required.
  TaskModel(
      {required this.id, required this.title, this.description, this.userId});
}
2
likes
160
points
44
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight ORM package for SQLite in Flutter that uses sqflite internally to simplify database operations.

Repository (GitHub)

License

BSD-3-Clause (license)

Dependencies

flutter, meta, path, sqflite

More

Packages that depend on flite