error[E0277]: `Flattening` has no generated insert for `_`
--> tests/ui/no_insert.rs:19:20
|
19 | Insert::insert(job, conn).await
| -------------- ^^^ no `Insert` for this connection
| |
| required by a bound introduced by this call
|
help: the trait `ruststream_sqlx::Insert<_>` is not implemented for `Flattening`
--> tests/ui/no_insert.rs:11:1
|
11 | struct Flattening {
| ^^^^^^^^^^^^^^^^^
= note: the derive generates it for the connections of the built-in dialects (features `postgres`, `mysql` and `sqlite`), unless a `#[sqlx(flatten)]` field hides columns from it: write that insert in the service
error[E0277]: `Flattening` has no generated insert for `PgConnection`
--> tests/ui/no_insert.rs:19:5
|
19 | Insert::insert(job, conn).await
| ^^^^^^^^^^^^^^^^^^^^^^^^^ no `Insert` for this connection
|
help: the trait `ruststream_sqlx::Insert<PgConnection>` is not implemented for `Flattening`
--> tests/ui/no_insert.rs:11:1
|
11 | struct Flattening {
| ^^^^^^^^^^^^^^^^^
= note: the derive generates it for the connections of the built-in dialects (features `postgres`, `mysql` and `sqlite`), unless a `#[sqlx(flatten)]` field hides columns from it: write that insert in the service