sqflite common
This package is not intended for direct use.
One exception to import sqflite_common/sqlite_api.dart
is that you have logic which is shared across Flutter apps and desktop binaries, and you want to make your shared logic platform-agnostic. In this case, you can import the sqflite_common/sqlite_api.dart
directly in your Dart package for shared logic and import it in your platform-dependent packages (e.g. using sqflite for Flutter apps and sqflite_common_ffi for desktop binaries).
Run this command:
With Dart:
$ dart pub add sqflite_common
With Flutter:
$ flutter pub add sqflite_common
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
sqflite_common: ^2.4.5+1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:sqflite_common/sqflite.dart';
import 'package:sqflite_common/sqflite_dev.dart';
import 'package:sqflite_common/sqflite_logger.dart';
import 'package:sqflite_common/sql.dart';
import 'package:sqflite_common/sqlite_api.dart';
import 'package:sqflite_common/utils/utils.dart';
Future main() async {
/// This package is not intended for direct use.
///
/// See [sqflite](https://pub.dev/packages/sqflite)
}
Download details:
Author: tekartik.com
Source: https://github.com/tekartik/sqflite/tree/master/sqflite_common
#flutter #android #web-development #web #ios #dart #sql #sqlite #database