sqlcool 4.0.0 copy "sqlcool: ^4.0.0" to clipboard
sqlcool: ^4.0.0 copied to clipboard

outdated

Easy api for Sqlite with reactivity bingings. Stream of changes, select bloc

example/lib/main.dart

import 'package:flutter/material.dart';
import 'pages/select_bloc.dart';
import 'pages/index.dart';
import 'pages/join_query.dart';
import 'pages/upsert.dart';
import 'pages/dbmodels/dbmodels.dart';
import 'dbviewer/dbviewer.dart';
import 'init_db.dart';
import 'conf.dart';

void main() {
  runApp(MyApp());

  /// initialize the database async. We will use the [onReady]
  /// callback later to react to the initialization completed event
  initDb(db: db);
}

final routes = {
  '/': (BuildContext context) => PageIndex(),
  '/select_bloc': (BuildContext context) => PageSelectBloc(),
  '/join': (BuildContext context) => PageJoinQuery(),
  '/upsert': (BuildContext context) => UpsertPage(),
  '/dbmodel': (BuildContext context) => DbModelPage(),
  '/dbmanager': (BuildContext context) => DbViewer(db: db),
};

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Sqlcool example',
      routes: routes,
    );
  }
}
43
likes
0
pub points
36%
popularity

Publisher

unverified uploader

Easy api for Sqlite with reactivity bingings. Stream of changes, select bloc

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, flutter, path_provider, pedantic, sqflite, synchronized

More

Packages that depend on sqlcool