Added more DSL features
From my experience as a user of this library, there are a lot of times where I wanted to have to select all columns or select a non empty chunk of columns when using the Select Builder, so I've gone ahead and added this:
SelectBuilder
.from(tableName)
.allColumns // also columns(nonEmptyChunkStr)
.where(rel1).and(rel2)
.build[DesiredType]
I've also gone ahead and implemented usingTimestamp
and usingTTL
as we have a couple of use cases for expiring rows (even though this should be done very cautiously with special attention paid to cleaning up and maintaining the SSTables frequently)
val insert = InsertBuilderSpecPerson
.insert(person)
.usingTTL(1.second) // this is a zio.Duration
.usingTimestamp(13370000L)
.build
.executeMutation
That's all for now, thanks for using Virgil 😺