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

Implement TIMESTAMP/TIMEOUT for inserts #8

Open
Jasperav opened this issue Jan 13, 2022 · 0 comments
Open

Implement TIMESTAMP/TIMEOUT for inserts #8

Jasperav opened this issue Jan 13, 2022 · 0 comments

Comments

@Jasperav
Copy link
Owner

Jasperav commented Jan 13, 2022

The ORM does not support TIMESTAMP and TIMEOUTs for inserts yet: https://docs.scylladb.com/getting-started/dml/#insert-statement.

This can be implemented by following these steps:

  1. Add the new method name in query_ident.rs. The query ident mod can be used by other users to interact with always up to date methods, so they never have to type the method names themselves and run into run time errors
  2. Add the new insert method somewhere in write_struct.rs, after the insert method (see line 177).
  3. Add a test in lib.rs. I want each new change to be tested.

To see the changes of the generated code easily:

  1. Change a line somewhere in build.rs. (there is no cargo:rerun-if-changed). This should trigger re-generation of the structs. The structs are in version control, so it should be easy to see what has been changed.
  2. Run the test in lib.rs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant