Skip to content

Commit

Permalink
#18 extend README with some better examples
Browse files Browse the repository at this point in the history
  • Loading branch information
FRosner committed Jul 16, 2015
1 parent df37d9c commit 5fa40c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ If you are not using any of the dependency management systems supported by JitPa
import de.frosner.ddq._

val customers = sqlContext.table("customers")
val contracts = sqlContext.table("contracts")
Check(customers)
.hasNumRowsEqualTo(100000)
.hasKey("customer_id")
.isNeverNull("customer_id")
.hasUniqueKey("customer_id")
.satisfies("customer_age > 0")
.isConvertibleToDate("customer_birthday", new SimpleDateFormat("yyyy-MM-dd"))
.hasForeignKey(contracts, "customer_id" -> "contract_owner_id")
.run()
```

Expand Down

0 comments on commit 5fa40c8

Please sign in to comment.