metabase / toucan

A classy high-level Clojure library for defining application models and retrieving them from a DB
Eclipse Public License 1.0
570 stars 49 forks source link

Implement type-fns support for PK #87

Closed pawit-metabase closed 2 years ago

pawit-metabase commented 2 years ago

Apply type-fns to PK before using it in the database and vice versa.

Note that this might be a breaking change for callers who already convert the input to the database-native type since Toucan previously did not consistently apply type-fns (e.g. applied on insert and update, but not where clause in select)

Fixes #65