php-cassandra-binary icon indicating copy to clipboard operation
php-cassandra-binary copied to clipboard

Use timeuuid on the insert statment

Open CBox opened this issue 10 years ago • 3 comments

Is there a way to insert new record in the prepared statment with now() function?

Thanks!

CBox avatar Dec 30 '14 03:12 CBox

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.

evseevnn-zz avatar Dec 30 '14 07:12 evseevnn-zz

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 :)

CBox avatar Dec 30 '14 12:12 CBox

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

evseevnn-zz avatar Dec 30 '14 13:12 evseevnn-zz