use sqlx_oldapi::Sqlite; use sqlx_test::test_type; #[derive(Debug, PartialEq, sqlx_oldapi::Type)] #[repr(u32)] enum Origin { Foo = 1, Bar = 2, } test_type!(origin_enum(Sqlite, "1" == Origin::Foo, "2" == Origin::Bar, ));