malcolmgroves / fluentquery Goto Github PK
View Code? Open in Web Editor NEWFluent, declarative query API for Collections/Containers and Enumerations in Delphi
License: Mozilla Public License 2.0
Fluent, declarative query API for Collections/Containers and Enumerations in Delphi
License: Mozilla Public License 2.0
Hi,
I'm using XE4, I get the error as stated in the topic, when trying to compile the FluentQueryTests.dpr project.
Ever worse - if the FluentQuery folder is in the 'Library Path', the error happens each time I compile any Delphi project.
Is it a compiler error of XE4? Thanks.
Need order a Collectio, this is possible ?
I want to select from a list of Children of an FMX object all those that support a specific interface, but trying something like the following won't work since there's a plain AsTObjectList that returns a list of TObject, but not one that could return the type you tell it to. Internally the AsTList would use "as OutT" and return TList
Is there some other way to pull this out with a clean syntax?
type TStoryItemCollection = TList;
function TStoryItem.GetStoryItems: TStoryItemCollection;
var IsStoryItem: TPredicate;
begin
IsStoryItem := function(obj: TFmxObject): Boolean
begin
Result := Supports(obj, IStoryItem);
end;
result := ObjectQuery.Select.From(Children).Where(IsStoryItem).AsTList(false);
end;
Hello,
Is It possible to support join in library?
more detail in this link:
https://docs.vapor.codes/3.0/fluent/querying/#join
Adding Enumerators for new types is not that hard currently, but it's a little verbose. This is mostly not really a problem, as most people probably won't need to do it. However, the one place they may want to (and where I definitely want to) is for their own business/domain objects. It would be good if the amount of code needed to create a CustomerQueryEnumerator, for example, was significantly lower than it is today. Something like 1) descend from CustomObjectQueryEnuemerator, IBound/IUnboundCustomObjectQueryEnumerator 2) add implementation of query operations, 3) add signatures to interfaces.
For strings this would delegate to a case sensitive Matches, probably the same for Char. For others, it makes sense to have.
CharQuery uses Char class helpers under the covers. XE2 doesn't have these, but equivalent functions are available.
Also, check where else I've used others.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.