Skip to main content

dart_sqlite 0.1.1 copy "dart_sqlite: ^0.1.1" to clipboard
dart_sqlite: ^0.1.1 copied to clipboard

A pure-Dart SQLite-compatible engine and sqlite3 API replacement.

example/dart_sqlite_example.dart

import 'package:dart_sqlite/dart_sqlite.dart';

void main() {
  final database = PureDatabase.memory();
  try {
    database.execute('CREATE TABLE notes (id INTEGER PRIMARY KEY, body TEXT)');
    database.execute('INSERT INTO notes (body) VALUES (?)', ['Hello, SQLite']);

    final notes = database.select('SELECT id, body FROM notes');
    print('${notes.single['id']}: ${notes.single['body']}');
  } finally {
    database.close();
  }
}
1
likes
160
points
376
downloads

Documentation

API reference

Publisher

verified publisherdev.sumsg.com

Weekly Downloads

A pure-Dart SQLite-compatible engine and sqlite3 API replacement.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on dart_sqlite