final classOptionCompareOption[B1] extends AnyVal with ColumnExtensionMethods[B1, Option[B1]] with OptionExtensionMethods[B1]
A wrapper around slick Rep option to allow easy comparisons of optional fields to optional values.
A wrapper around slick Rep option to allow easy comparisons of optional fields to optional values.
Example: column in table team_id is nullable and context.teamId is an option. We want to be able to do
.filter(row => row.teamId === context.teamId)
however this does not work if context.teamId is None because the SQL resolves to where team_id = null instead of
where team_id is null.
This class adds a function =?= to compare two options and if the right param is None the sql will turn into "is null"
:
final classUUIDCompare extends AnyVal with BaseExtensionMethods[DbUUID]
A wrapper around slick Rep option to allow easy comparisons of optional fields to optional values. Example: column in table team_id is nullable and context.teamId is an option. We want to be able to do .filter(row => row.teamId === context.teamId) however this does not work if context.teamId is None because the SQL resolves to where team_id = null instead of where team_id is null. This class adds a function =?= to compare two options and if the right param is None the sql will turn into "is null"
: