mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
1b5dd6514b
* preparing 0.5.8 release * fix warnings before release
14 lines
232 B
Rust
14 lines
232 B
Rust
use sqlx::Sqlite;
|
|
use sqlx_test::test_type;
|
|
|
|
#[derive(Debug, PartialEq, sqlx::Type)]
|
|
#[repr(u32)]
|
|
enum Origin {
|
|
Foo = 1,
|
|
Bar = 2,
|
|
}
|
|
|
|
test_type!(origin_enum<Origin>(Sqlite,
|
|
"1" == Origin::Foo,
|
|
"2" == Origin::Bar,
|
|
));
|