sea-orm
sea-orm copied to clipboard
🐚 An async & dynamic ORM for Rust
fix from_query_result for jsonvalue when database charset rule is utf8mb4_bin if db column type is varchar will return vec ## PR Info - Closes - Dependencies: - - Dependents: -...
## Description When loading a 1:1 relation from a model, and also loading it's related model, an error is thrown: `cannot apply alias for expr other than Column or AsEnum`...
## Description We encountered an issue when using the `cursor_by` method in SeaORM with a `JOIN` operation in SQLite. Specifically, when performing a `JOIN` between two tables (e.g., table A...
## Description **TL;DR**: Sea Orm Cli considers the Postgres' Money type to be compatible with Decimal and generates a model that cannot be selected because Sqlx considers these types incompatible....
## Description I'm trying to upgrade from `1.1.1` to `1.1.2` and keep getting these errors, for every single field definition on the generated `pub struct Model`: ``` error[E0576]: cannot find...
## Description See here: https://github.com/SeaQL/sea-orm/discussions/1807 It's been unanswered for more than a year and it isn't really a discussion and more like a bug. In my case I have a...
There is a table define: ``` CREATE TABLE `demo` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `char_col` varchar(20) DEFAULT NULL , `text_col` text DEFAULT NULL , PRIMARY KEY (`id`) ) ENGINE=InnoDB...
### Discussed in https://github.com/SeaQL/sea-orm/discussions/2446 Originally posted by **baby195lxl** December 11, 2024 I want to use Rust's SeaORM to implement the following SQL code:` SELECT grade, ARRAY_AGG(DISTINCT student) FROM (SELECT id,...
## Description Generated entity files via sea orm cli. Here's what it looks like: ``` //! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.0 use sea_orm::entity::prelude::*; use rocket::serde::{Serialize, Deserialize}; #[derive(Clone, Debug, PartialEq,...
`[DatabaseConnection]` is passed as State `.with_state(state)` in Axum Server but this don't work. `[DatabaseConnection]` can't be shared across threads. In `examples/axum_example/api/src/lib.rs` ```rust ... #[derive(Clone)] struct AppState { templates: Tera, conn:...