phorm_sqlite 1.3.0 copy "phorm_sqlite: ^1.3.0" to clipboard
phorm_sqlite: ^1.3.0 copied to clipboard

The SQLite driver and connection manager implementation for the PHORM.

example/main.dart

// Examples print to the console for illustration only.
// ignore_for_file: avoid_print

import 'package:phorm_sqlite/phorm_sqlite.dart';

void main() {
  // Create a SQLite-backed PHORM database handle. Register your generated
  // tables in `tables` and call `db.database` to open and run migrations.
  final db = DB(
    databaseName: ':memory:',
    version: 1,
    tables: const [],
  );

  // The SQLite dialect decides how identifiers and placeholders are compiled.
  final dialect = SqliteDialect();
  print('Database created: $db');
  print('Placeholder for arg 1: ${dialect.compilePlaceholder(1)}');
}
1
likes
150
points
417
downloads
screenshot

Documentation

API reference

Publisher

verified publisherinterlib.dev

Weekly Downloads

The SQLite driver and connection manager implementation for the PHORM.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, meta, path, path_provider, phorm, sqlite3, sqlite3_flutter_libs, sqlite3_web

More

Packages that depend on phorm_sqlite