quds_db 0.0.6+6 quds_db: ^0.0.6+6 copied to clipboard
A sqflite expansion package that simplifies creating databases and tables, crud operations, queries with modelization
import 'package:example/data/notes_provider.dart';
import 'package:flutter/material.dart';
import 'ui/screens/home_page.dart';
void main() async {
// var result =
await notesProvider.query(
queries: (n) => [
n.jsonArrayData.asNamed('arr'),
n.jsonArrayData
.removeAt(1)
.insertAt(0, 7)
.add(10)
.asNamed('arr_after')
]);
// print(result);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Quds Db Example',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Quds Db Example'),
);
}
}