Skip to content

Add stripMargin to CqlInterpolatedString

Compare
Choose a tag to compare
@calvinlfer calvinlfer released this 19 Jun 20:38
· 164 commits to zio2 since this release

We've added stripMargin which only works on the string portions of the cql query

 val query =
            cql"""SELECT id, name, persons
                 |FROM persons
                 |WHERE id = ${1} AND name = ${"cal"}""".stripMargin
// SELECT id, name, persons 
// FROM persons 
// WHERE id = :param0 AND name = :param1