preference_core 0.1.2 copy "preference_core: ^0.1.2" to clipboard
preference_core: ^0.1.2 copied to clipboard

Core connector contracts and semantic models for the Preference ecosystem.

example/preference_core_example.dart

import 'package:preference_core/preference_core.dart';

/// Builds a connector-neutral request that a database connector can execute.
void main() {
  const request = QueryRequest(
    collectionId: 'work_orders',
    filter: FilterExpression(
      rawQuery: 'status = open',
      node: FilterEquals('status', 'open'),
    ),
    sort: SortConfiguration('updatedAt', ascending: false),
    limit: 25,
  );

  print(request.toJson());
}
0
likes
160
points
146
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Core connector contracts and semantic models for the Preference ecosystem.

Homepage

Topics

#database #connectors #dart

License

Apache-2.0 (license)

More

Packages that depend on preference_core