Skip to content

Instantly share code, notes, and snippets.

@merttoptas
Created March 13, 2020 19:22
Show Gist options
  • Save merttoptas/7a79df0c7a04663c15eebc94c2f70854 to your computer and use it in GitHub Desktop.
Save merttoptas/7a79df0c7a04663c15eebc94c2f70854 to your computer and use it in GitHub Desktop.
import 'dart:async';
import 'package:floor/floor.dart';
import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart' as sqflite;
import 'package:floor_example/model/Student.dart';
import 'package:floor_example/db/dao/StudentDao.dart';
part 'database.g.dart'; // the generated code will be there
@Database(version: 1, entities: [Student])
abstract class StudentDatabase extends FloorDatabase {
StudentDao get studentDao;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment