frees-io / freestyle-cassandra

Freestyle Cassandra
http://frees.io/
Apache License 2.0
17 stars 4 forks source link

Change to the macro interpolator in the freestyle cassandra example #95

Closed fedefernandez closed 6 years ago

fedefernandez commented 7 years ago

We have a Freestyle Cassandra Example repository (https://github.com/frees-io/freestyle-cassandra-example) containing some examples showing how to use Freestyle Cassandra and its different features.

One of those examples shows the StringInterpolator feature implemented for Freestyle Cassandra, but it's making use of RuntimeCQLInterpolator instead of the SchemaFileInterpolator macro. We'd like to move these examples to make use of the SchemaFileInterpolator macro.

For code references, you can check the SchemaFileInterpolator tests: https://github.com/frees-io/freestyle-cassandra/blob/9e217341a940c44d4fef91d9164157277c5d7ba6/macros-tests/src/test/scala/interpolator/SchemaFileInterpolatorTest.scala#L31-L74

And SchemaFileInterpolator definition: https://github.com/frees-io/freestyle-cassandra/blob/9e217341a940c44d4fef91d9164157277c5d7ba6/macros-tests/src/main/scala/interpolator/MySchemaInterpolator.scala#L21-L24

Note the import MySchemaInterpolator._