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:
Type level programming... TODO: Explain basic type classes
- Parse Raw SELECT Queries (FastParse) generating ScalaMeta trees
- Parse CREATE TABLE statement into intermediate representation
- Generate facts about schema as ScalaMeta trees
- Execute Queries (using raw query provided by user)
- Generate the query from the type AST