database 0.2.6 copy "database: ^0.2.6" to clipboard
database: ^0.2.6 copied to clipboard

outdated

A database API for SQL databases, document databases, and search engines. Various adapters are available in this and other packages.

example/example.dart

import 'package:database/database.dart';

void main() async {
  // Choose a database
  final database = MemoryDatabase();

  // Search
  final response = await database.collection('people').search(
        query: Query.parse(
          '"software developer" (dart OR javascript)',
          take: 10,
        ),
      );

  // Print results
  for (var snapshot in response.snapshots) {
    print('Employee ID: ${snapshot.document.documentId}');
    print('Employee name: ${snapshot.data['name']}');
    print('');
  }
}
108
likes
0
pub points
77%
popularity

Publisher

verified publisherdint.dev

A database API for SQL databases, document databases, and search engines. Various adapters are available in this and other packages.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

built_collection, built_value, charcode, collection, fixnum, meta, protobuf, universal_html, universal_io

More

Packages that depend on database