sqflite_ext 1.2.0 copy "sqflite_ext: ^1.2.0" to clipboard
sqflite_ext: ^1.2.0 copied to clipboard

Useful utilities to augment sqflite.

Pub CI

sqflite_ext #

Useful utilities to augment sqflite. Designed to be unobtrusive helpers, so you still access sqflite directly (not a wrapper).

Usage #

Bool utilities #

Sqflite does not support the bool type (reference).

import 'package:sqflite_ext/sqflite_ext.dart';

boolToInt(true);
// => 1

boolToIntOrNull(null);
// => null

intToBool(1);
// => true

intToBoolOrNull(null);
// => null

Named arguments #

import 'package:sqflite_ext/sqflite_ext.dart';

final result = parseNamedArgs(
  'SELECT * FROM demo WHERE id = :id',
  {'id': 83},
);
// result.query => 'SELECT * FROM demo WHERE id = ?'
// result.arguments => [83]
0
likes
130
pub points
35%
popularity

Publisher

unverified uploader

Useful utilities to augment sqflite.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on sqflite_ext