riak-ql

Antonio Rohman Fernandez rohman at mahalostudio.com
Tue Jul 26 22:46:25 EDT 2011


  

I tried YII framework before aswell as DOOPHP framework and Zend
Framework... i was not very happy with any of them, and CakePHP is too
heavy and slow ( and no support for NOSQL )... that's why i decided to
build my own framework with a minimal core and taking what i love from
CakePHP and taking out what i hate form it. Riak is also just the first
NOSQL i implement on it, models for others like Cassandra, CouchBase,
etc... could be implemented later, then you can just use any databases
you want in a same app just extending their models like:

class
UserModel extends RiakModel {}
class MessageModel extends CassandraModel
{}  $user = new User; 
> $user->attributes = $_POST['User']; //
massively assigning attributes 
> $user->name = 'Joe Dirt'; //
individual attribute assignment 
> $user->save(); 
> 
> $user =
User::model()->findByPk($id); 
> $user->name = 'Joe Dirt'; 
>
$user->save(); 
> I have result sorting functioning, and I have
filtering by object column partially working. Hopefully I'll have a
stable result in a month or so. 
> Building the extension so that it's
not limited to just Riak, but hopefully a variety of storage methods
(Riak just happens to be my specific use case). 
> 
> Cheers, good luck
on your CakePHP-style rendition. 
> 
> [25]
> 
> _JONATHAN LANGEVIN_
>
Systems Administrator 
> 
> LOOM INC.
> Wilmington, NC: (910) 241-0433 -
jlangevin at loomlearning.com [26] - www.loomlearning.com [27] - Skype:
intel352 
> 
> On Tue, Jul 26, 2011 at 10:21 PM, Kev Burns wrote:
> 
>>
Here's a virus-free version of Antonio's slide deck (Google Docs)
>>
https://docs.google.com/present/view?id=dhpxng6q_51gdj6r9wn [21]
>> 
>>
- Kev
>> c: +001 (650) 521-7791 
>> 
>> On Tue, Jul 26, 2011 at 6:23 PM,
Antonio Rohman Fernandez wrote:
>> 
>>> for PHP you can take a look at
this slides i made, is about "phpCloud Framework" a new PHP5 MVC
framework i'm building with Riak integration in place : ) is based on
CakePHP that borrows heavily on Ruby on Rails.
>>> You can download the
slides on this address ( seems the file is too big for the distribution
list as my last mail couldn't be sent ):
>>> 
>>>
http://mahalostudio.com/Riak_phpCloud.pptx [13]
>>> 
>>> Rohman 
>>>

>>> -- 
>>> 
>>> [14]
>>> 
>>> ANTONIO ROHMAN FERNANDEZ
>>> CEO,
Founder & Lead Engineer
>>> rohman at mahalostudio.com [15] 
>>>
PROJECTS
>>> MaruBatsu.es [16]
>>> PupCloud.com [17]
>>> Wedding Album
[18] 
>>> 
>>> On Tue, 26 Jul 2011 20:00:27 -0400, Jonathan Langevin
wrote: 
>>> 
>>>> Looks interesting, but doesn't appear very intuitive
(at least, to a PHP dev) 
>>>> 
>>>> [9]
>>>> 
>>>> _JONATHAN
LANGEVIN_
>>>> Systems Administrator 
>>>> 
>>>> LOOM INC.
>>>>
Wilmington, NC: (910) 241-0433 - jlangevin at loomlearning.com [10] -
www.loomlearning.com [11] - Skype: intel352 
>>>> 
>>>> On Mon, Jul 25,
2011 at 9:40 AM, francisco treacy wrote: 
>>>> 
>>>>> It's awesome for
ad-hoc querying, at least. An example can better explain.
>>>>> 
>>>>>
Consider this:
>>>>> 
>>>>> db.add('users').map('query', '.address
.street where .weight:expr(x !.expired').run() 
>>>>> 
>>>>> as opposed
to:
>>>>> 
>>>>> db.add('users').map(function(v) {
>>>>> v =
Riak.mapValuesJson(v)[0];
>>>>> var result = [];
>>>>> if ((v.weight <
180 || v.exempt) && v.acl && v.acl.state === '1101'
>>>>> && !v.expired)
{
>>>>> if (v.address) {
>>>>> result.push(v.address.street);
>>>>>
}
>>>>> }
>>>>> return result;
>>>>> }).run()
>>>>> 
>>>>> riak-ql is
basically adding some query sugar (where, &&) on top of
>>>>>
JSONSelect... which you can try it out here:
>>>>>
http://jsonselect.org/#tryit [1]
>>>>> 
>>>>> 2011/7/25 Mark Phillips
:
>>>>> 
>>>>>> Hey Francisco,
>>>>> >
>>>>> > I for one would be
interested in learning some more specifics on how
>>>>> > you're using
it. I suspect others might be, too...
>>>>> >
>>>>> > Mark
>>>>> >
>>>>>
> On Sat, Jul 23, 2011 at 4:40 PM, francisco treacy
>>>>> > wrote:
>>>>>
>> Hey all,
>>>>> >>
>>>>> >> Just wondering... is anyone using, or have
tried out riak-ql?
>>>>> >> https://github.com/frank06/riak-ql [4]
>>>>>
>>
>>>>> >> Not because I developed it -- but I'm regularly making use
of it and I
>>>>> >> think it kicks ass. Especially in the repl in combo
with riak-js.
>>>>> >>
>>>>> >> What do you guys think?
>>>>> >>
>>>>>
>> Francisco
>>>>> >>
>>>>> >> ps: really curious/excited about the
upcoming Secondary Indices functionality
>>>>> >>
>>>>> >>
_______________________________________________
>>>>> >> riak-users
mailing list
>>>>> >> riak-users at lists.basho.com [5]
>>>>> >>
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
[6]
>>>>> >>
>>>>> >
>>>>> 
>>>>>
_______________________________________________
>>>>> riak-users mailing
list
>>>>> riak-users at lists.basho.com [7]
>>>>>
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
[8]
>>> 
>>> _______________________________________________
>>>
riak-users mailing list
>>> riak-users at lists.basho.com [19]
>>>
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
[20]
>> 
>> _______________________________________________
>>
riak-users mailing list
>> riak-users at lists.basho.com [23]
>>
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
[24]

-- 

 		 [29]

 ANTONIO ROHMAN FERNANDEZ
CEO, Founder & Lead
Engineer
rohman at mahalostudio.com [30] 		 
 PROJECTS
MaruBatsu.es
[31]
PupCloud.com [32]
Wedding Album [33] 

   

Links:
------
[1]
http://jsonselect.org/#tryit
[2] mailto:mark at basho.com
[3]
mailto:francisco.treacy at gmail.com
[4]
https://github.com/frank06/riak-ql
[5]
mailto:riak-users at lists.basho.com
[6]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
[7]
mailto:riak-users at lists.basho.com
[8]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
[9]
http://www.loomlearning.com/
[10] mailto:jlangevin at loomlearning.com
[11]
http://www.loomlearning.com/
[12] mailto:francisco.treacy at gmail.com
[13]
http://mahalostudio.com/Riak_phpCloud.pptx
[14]
http://mahalostudio.com/
[15] mailto:rohman at mahalostudio.com
[16]
http://marubatsu.es/
[17] http://pupcloud.com/
[18]
http://wedding.mahalostudio.com/
[19]
mailto:riak-users at lists.basho.com
[20]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
[21]
https://docs.google.com/present/view?id=dhpxng6q_51gdj6r9wn
[22]
mailto:rohman at mahalostudio.com
[23]
mailto:riak-users at lists.basho.com
[24]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
[25]
http://www.loomlearning.com/
[26] mailto:jlangevin at loomlearning.com
[27]
http://www.loomlearning.com/
[28] mailto:kevburnsjr at gmail.com
[29]
http://mahalostudio.com
[30] mailto:rohman at mahalostudio.com
[31]
http://marubatsu.es
[32] http://pupcloud.com
[33]
http://wedding.mahalostudio.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110727/ac511127/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blocked.gif
Type: image/gif
Size: 118 bytes
Desc: not available
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110727/ac511127/attachment.gif>


More information about the riak-users mailing list