masumsoft / express-cassandra

Cassandra ORM/ODM/OGM for NodeJS with support for Apache Cassandra, ScyllaDB, Datastax Enterprise, Elassandra & JanusGraph.
http://express-cassandra.readthedocs.io
GNU Lesser General Public License v3.0
228 stars 67 forks source link

[Feature request] Virtual field for WRITETIME #234

Open josiahjohnston opened 3 years ago

josiahjohnston commented 3 years ago

We have use cases that need WRITETIME's of certain columns. The only way we know to do this now is via the select attribute. It would be much more convenient if we could define a virtual column (read only) that would evaluate to an extra item in the select list, and always appear in the model results.

I'm guessing this functionality would be of broader use because it would enable other functions like TTL, timeuuid functions, or UDFs.