AnyhowStep / tsql

A SQL query-builder/ORM
37 stars 3 forks source link

Investigate removing `EquatableType` entirely. #209

Closed AnyhowStep closed 4 years ago

AnyhowStep commented 4 years ago

ComparableType seems pretty necessary for now. But EquatableType seems completely unnecessary.

I think that, on all databases, the equality operator should be defined for all data types. So, EquatableType seems pointless.

However, not all types are comparable. For example, on PostgreSQL,

SELECT point(1,2) < point(3,1);

Gives,

operator does not exist: point < point