Actionscript Integrated Query Language Preview Release
LINQ For Actionscript 3!
Categories: Codename GAIQL
For the past week I have been deeply involved over on the .NET side working with C#, Parallel FX and PLINQ ( Parallel LINQ). LINQ has been very useful as it saved me tons of times getting data back from large data structures and I thought to my self it would be neat if there was something like this for Actionscript 3. Well after i finished my work with .NET I fired up Flex Builder and started to work on a library for actionscript that does exactly what LINQ does . Its turning out to be really great and i want to give a few people the chance to test it out . If you want to play around with GAIQL (G-unIX Actionscript Integrated Query Language) then leave a comment or email me at Faisal@g-unix.com with the subject GAIQL Tester . Ill send you the swc to test it out.
For others who want to wait till the final release (Why Would you do that!) here is something that might convince you . Say if you wanted to check if an entry was in the array , all you would have to do to find out is the following :
private var q:GAIQL = new GAIQL()
private var result:Array = q.Call("FROM myarray GET thevalueiwant" ,this);
and the value you want doesn't have to be hard coded, it can be passed as a variable . Then you can simply check the length of your result array to see if it got populated or not .
For others who want to wait till the final release (Why Would you do that!) here is something that might convince you . Say if you wanted to check if an entry was in the array , all you would have to do to find out is the following :
private var q:GAIQL = new GAIQL()
private var result:Array = q.Call("FROM myarray GET thevalueiwant" ,this);
and the value you want doesn't have to be hard coded, it can be passed as a variable . Then you can simply check the length of your result array to see if it got populated or not .
Posted by Faisal at 2:45 PM | Link | 3 comments
Subscription Options
You are not logged in, so your subscription status for this entry is unknown. You can login or register here.
Re: Actionscript Integrated Query Language Preview Release
first of all, I would love to take a look..
could you give more code samples to your "query language"?
would it work on AIR-SQL? - cause LINQ implementation to AIR-SQL would be great!
could you give more code samples to your "query language"?
would it work on AIR-SQL? - cause LINQ implementation to AIR-SQL would be great!
Posted by Rosenthal Ido on May 8, 2008 at 2:15 AM
Re: Actionscript Integrated Query Language Preview Release
The Flare AS3 project has some pretty extensive query support, might be worth getting ideas from.
http://flare.prefuse.org/doc/api/flare/query/Query.html
http://flare.prefuse.org/doc/api/flare/query/Query.html
Posted by eric on May 8, 2008 at 6:33 PM
Re: Actionscript Integrated Query Language Preview Release
Hi. I know about you from Ryan Stewart's blog...Maarten Balliauw had done a similar job, "translating" LINQ from C# to PHP...and it works like a charm. Good luck and keep us updated. Cheers from Portugal
Posted by Ricardo Castelhano on May 9, 2008 at 10:01 PM