Hi Jonathan,
of course, in order to use TimeUUID you need to use $cassie->uuid()
which will generate uuid object, which can be passed directly into
->column().
i.e. for setting new entry
$cassie->keyspace('MyBlog')->cf('RawFood')->key('Posts')->column($cassie->uuid())->set('I
like green food');
In order to get latest 10 posts:
$posts =
$cassie->keyspace('MyBlog')->cf('RawFood')->key('Posts')->slice(10);
In order to get post's canonical uuid name:
$uuid = $cassie->uuid($posts[0]->column->name);
$string = (string) $uuid;
$binary = $uuid->uuid;
cheers
On 20/03/2010 17:48, Jonathan Ellis wrote:
Cool, thanks!
Does it make it easy to use TimeUUID columns? Because that is the
biggest problem I see people having from PHP.
On Sat, Mar 20, 2010 at 7:32 AM, Marcin<mar...@simpletags.org> wrote:
Hi guys,
I would like to share with you link to the PHP client for Cassandra build
with flexibility and easy use in mind.
It implements some of the ORM concepts.
here you go:
http://code.google.com/p/simpletools-php/wiki/SimpleCassie
P.S.
Appreciate any feedback.
cheers,
/Marcin