datastore 0.1.0 datastore: ^0.1.0 copied to clipboard
Enables developers to use document databases and information retrieval systems. Various adapters are available in this and other packages. The package works in all platforms (Flutter, browser, server).
import 'package:datastore/datastore.dart';
void main() async {
// Choose a datastore
final datastore = Datastore.defaultInstance;
// Search
final response = await datastore.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('');
}
}