Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Auxo.DataSet

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Generic DataSet 0.0.1-pre-alpha

  • Dependencies
    • Auxo.Core
    • Auxo.Access
    • Auxo.Query
    • Auxo.Data

  • Data Types
    • JSON
    • XML
    • others
  • Data Providers
    • RestAPI
    • Databases
    • Local File
  • Features
    • Where Suport
    • Pagination Suport
    • Order Suport
    • Master Detail Suport
    • Select Suport

delphi
var
  dataset: TAuxoDataSet;
  api: TApiRepository;
begin
  dataset.Repository := api;
  dataset.Order['Name'];
  dataset.Where['Age', TOperator.LtOrEq, 12].Orr['Age', TOperator.GrOtEq, 65];
  dataset.PageCount := 50;
  
  dataset.OpenAsync(procedure
  begin
    ShowMessage(dataset.RecordCount);
    ShowMessage(datasetName.S); //Function S is a Helper Method that call AsString
  end); //http://api/person/?where=age<=12 OR age>=65&order=Name&Select=Name,Age&Skip=1&Take&50
end;