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

outdated

A vendor-agnostic database API. Various adapters are available, such as in-memory database, browser APIs, ElasticSearch, and others.

example/example.dart

import 'package:database/database.dart';

void main() async {
  // Choose a database
  final database = Database.defaultInstance;

  // 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 vendor-agnostic database API. Various adapters are available, such as in-memory database, browser APIs, ElasticSearch, and others.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

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

More

Packages that depend on database