and just a simple cargo build I get a bunch of errors.
error[E0308]: mismatched types
--> src/schema.rs:21:10
|
21 | #[derive(ormx::Table)]
| ^^^^^^^^^^^ expected `u32`, found `i32`
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
--> src/schema.rs:21:10
|
21 | #[derive(ormx::Table)]
| ^^^^^^^^^^^ expected struct `std::string::String`, found enum `Option`
|
= note: expected struct `std::string::String`
found enum `Option<std::string::String>`
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
--> src/schema.rs:21:10
|
21 | #[derive(ormx::Table)]
| ^^^^^^^^^^^ expected `i32`, found `u32`
|
= note: this error originates in the derive macro `ormx::Table` (in Nightly builds, run with -Z macro-backtrace for more info)
because these are type mismatches in the compiler, they're almost impossible to debug. I'm using the latest postgres.
I'm trying to use ormx and I can't even get the example to run. If I use the schema
and just a simple
cargo build
I get a bunch of errors.because these are type mismatches in the compiler, they're almost impossible to debug. I'm using the latest postgres.