Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
83 stars 11 forks source link

Add equality of KnownId(t) and Known(t) #234

Closed jayvdb closed 2 months ago

jayvdb commented 3 months ago

20240115_023841384_dbconstraints in the getting_started example had all columns being modified because the .sqltype members of the previous migration was using Known(t) while the new .table files used KnownId(t).

This could be achieved by adding a different equality-like method, rather than using .eq(), but it seems this is a good approach for handling this deprecation.