php-cassandra-binary
php-cassandra-binary copied to clipboard
Use timeuuid on the insert statment
Is there a way to insert new record in the prepared statment with now() function?
Thanks!
is currently no. :( You can certainly so:
$timeuuid = $database->query('SELECT now() as "now" FROM system.schema_keyspaces LIMIT 1;')[0]['now'];
I will try to fix it as soon as possible.
Thanks! I want to help extend this library but I just can't really understand how is the binary protocol works, I'll keep trying :)
Thank U. I will be glad of any help, because I lack the time. Here's a link on protocol specification. Perhaps this is will help you)
https://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=doc/native_protocol_v2.spec;hb=HEAD