buildRemoteSearchRequest method

(String, String?, int, int) buildRemoteSearchRequest(
  1. SyncScope scope,
  2. QuerySpec spec
)

Build PocketBase remoteSearch parameters (filter, sort, page, perPage). Exposed for tests to validate translation from QuerySpec.

Implementation

(String filter, String? sort, int page, int perPage) buildRemoteSearchRequest(
  SyncScope scope,
  QuerySpec spec,
) {
  return buildPocketBaseRemoteSearchRequest(
    scope: scope,
    spec: spec,
    idField: config.idField,
    updatedAtField: config.updatedAtField,
    deletedAtField: config.deletedAtField,
    scopeNameField: config.scopeNameField,
  );
}