NyxCode
NyxCode
Hey! Lovely to hear that it's usefull to you! `insert` currently requires a re-usable connection on MySQL. This is because MySQL doesn't support `INSERT .. RETURNING ..`. Instead, we insert...
I guess we could have different `Table::insert` for different backends, though i'm not sure that would be a great idea. Will need to think about this a bit.
@mattfbacon thanks for opening this issue. It seems like the documentation is out-of-date. Nowadays, the ID column is not handled specially - if it's database-generated, it has to be #[ormx(default)].
that's weird - did you do `cargo run` in `./example-postgres`?
I think it'd be great if you could show exactly what you did.
I agree, `get_many` is pretty limited right now. It was intended for something simple like `User::get_by_role(Role)`. As far as I can remember, sqlx is still picky when it comes to...
Hey, thanks for the PR. `#[ormx(default)]` was intended to be used for columns with a default value. For supporting generated columns, I suggest we introduce an other PG-specific attribute, maybe...
thats possible, never worked with it though. But as I said, we need to differentiate between default and generated.
@nicoulaj Are you still willing to persue this? I think support for `#[ormx(generated)]` would be super cool.
Demo: https://carbon-compone-git-fork-nyxcode-playground-carbon-cba1c9.vercel.app/components/Checkbox