We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example:
#[charybdis_model( table_name = users, partition_keys = [id], clustering_keys = [], )] pub struct User { id: Uuid, #[charybdis_expr("WRITETIME(id)")] id_writetime: Option<Timestamp>, tags: Set<Text>, post_ids: List<Uuid>, }
id_writetime will be a read-only field (ignored by insert() and update())
id_writetime
insert()
update()
SELECT queries will include WRITETIME(id) and the column will be mapped to id_writetime
WRITETIME(id)
What do you think?
The text was updated successfully, but these errors were encountered:
I would recommend the following syntax:
#[charybdis_model( table_name = users, partition_keys = [id], clustering_keys = [], )] pub struct User { id: Uuid, username: Uuid, #[charybdis(writetime = "username")] username_wt: Option<Timestamp>, }
Note that we can not use writetime on primary key columns, so we need to panic! if users try to.
writetime
panic!
Sorry, something went wrong.
Looks good. Will you implement this? :-)
I am quite busy these few weeks. I will probably just do small updates and fixes until mid-July.
No branches or pull requests
Example:
id_writetime
will be a read-only field (ignored byinsert()
andupdate()
)SELECT queries will include
WRITETIME(id)
and the column will be mapped toid_writetime
What do you think?
The text was updated successfully, but these errors were encountered: