-
-
Notifications
You must be signed in to change notification settings - Fork 54
FB4D Reference TQueryParamsHelper
This class helper extends TQueryParams (TDictionary<string, TStringDynArray>) and can be used for both databases (RT-DB and Firestore). It helps to setup the QueryParams.
This constructor supports fluent interface design. You can pass a previously created TQueryParams or nil and always get back a valid TQueryParams.
class function CreateQueryParams(CheckThisInstanceFirst: TQueryParams =
nil): TQueryParams;
function AddOrderBy(const FieldName: string): TQueryParams;
function AddOrderByType(const TypeName: string): TQueryParams;
function AddLimitToFirst(LimitToFirst: integer): TQueryParams;
function AddLimitToLast(LimitToLast: integer): TQueryParams;
function AddOrderByAndEqualTo(const FieldName,
FilterValue: string): TQueryParams; overload;
function AddOrderByAndEqualTo(const FieldName: string;
FilterValue: integer): TQueryParams; overload;
function AddOrderByAndEqualTo(const FieldName: string;
FilterValue: extended): TQueryParams; overload;
function AddPageSize(PageSize: integer): TQueryParams;
function AddPageToken(const PageToken: string): TQueryParams;
function AddTransaction(
Transaction: TFirestoreReadTransaction): TQueryParams;
Application for Realtime Database:
TQueryParams.CreateQueryParams.AddOrderBy(ColumnName: string).AddLimitToFirst(NumberOfResults: integer);
Application for Firestore Cloud Database:
TQueryParams.CreateQueryParams.AddTransaction(ReadTransaction: TFirestoreReadTransaction).AddPageSize(NumberOfResults: integer);
Have you discovered an error? Or is something unclear? Please let us know in the discussion forum.
Schneider Infosystems Ltd. CH-6340 Baar, Switzerland, www.schneider-infosys.ch
Introduction into FB4D
Getting Started
Fundamental Principles
Project Settings
GUI Pattern Self-Registration
RT-DB Sample Applications
Firestore Chat Sample Applications
PhotoBox demonstrates Firestore, Storage, VisionML
Interface Reference
Configuration and Class Factory
Helper Classes
Authentication