Toy-troy is simplified version of Troy, the schema-safe Cassandra driver. The main purpose of this repo to demonstrate the underlying concept of Troy by implementing only a small subset of it.
You write your code using CQL strings
Using Macros, the CQL strings above gets expanded into:
At compile time, you get error messages if you query is wrong
[error] <macro>:5: Table "lol" does not exist.
[error] <macro>:5: Column "foobar" does not exist in table "posts"
[error] <macro>:5: Row is not compatible with Output structure
[error] <macro>:5: Bind Markers are not compatible with Input structure
See it working here, you'll need running Cassandra to run the demo, but it compiles without connecting it.