quds_mysql 1.0.0 copy "quds_mysql: ^1.0.0" to clipboard
quds_mysql: ^1.0.0 copied to clipboard

outdated

A starting point for Dart libraries or applications.

example/lib/example.dart

import 'package:example/data/note.dart';
import 'package:quds_mysql/quds_mysql.dart' as my_db;
import 'data/notes_repository.dart';

Future<void> runApp() async {
  my_db.DbHelper.mainDb = 'flutter';
  var notesManager = NotesRepository();
  var notes = [
    for (int i = 0; i < 1000; i++)
      Note()
        ..title.value = 'hi-$i'
        ..isRead.value = i % 2 == 0
  ];
  await notesManager.insertCollection(notes);
  for (var n in notes) {
    n.title.value = 'New title';
  }
  await notesManager.updateCollectionById(notes);

  var selectNotes = {
    await notesManager.selectWhere((e) => e.importance.equals(1))
  };
  print(selectNotes.length);
}
4
likes
0
pub points
0%
popularity

Publisher

verified publisherquds.cc

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

mysql1

More

Packages that depend on quds_mysql