Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use timeuuid on the insert statment #53

Open
CBox opened this issue Dec 30, 2014 · 3 comments
Open

Use timeuuid on the insert statment #53

CBox opened this issue Dec 30, 2014 · 3 comments
Assignees

Comments

@CBox
Copy link

CBox commented Dec 30, 2014

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

Thanks!

@evseevnn-zz
Copy link
Owner

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 evseevnn-zz self-assigned this Dec 30, 2014
@CBox
Copy link
Author

CBox commented Dec 30, 2014

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

@evseevnn-zz
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants