sea-orm
sea-orm copied to clipboard
🐚 An async & dynamic ORM for Rust
## Description A column expression is not accepted in LIKE condition ## Steps to Reproduce I have a table containing strings that are patterns (they contain wildcards like % and...
## Description SeaORM assumes that column passed in cursor_by is in the original table. ## Steps to Reproduce 1. Select from table 2. Join with another table 3. use `cursor_by`...
## PR Info This is a relatively simple change where sea-orm-cli did not mark primary key columns as unique, resulting in a has_many relation where a has_one would be correct....
## Description When using the sea-orm-cli like this: ```bash sea-orm-cli generate entity -o entity/src/new \ --lib \ --with-copy-enums \ --with-serde both \ --date-time-crate time\ -u postgresql://docker:root@localhost:5432/docker ``` Sea-orm generates something...
## Description When trying to alter column of enum type to make it use the new enum type I'm getting a error from Postgres saying: ``` [1642] LOG: execute sqlx_s_4:...
In databases there are a lot of textual codes, most of which are short. Using `smartstring` (or equivalent) may result in performance improvement, although I have not benchmarked it. The...
## Description `ColumnDef` builder functions in `sea-orm-migration` may push SQL additional statements instead of changing them. It looks like `string()`, for example, will add `NOT NULL` by default. If you...
## Description `character varying(128)` in incorrectly generated as `128u32` ## Steps to Reproduce Consider the following [table](https://github.com/AscendingCreations/AxumSession/blob/c34fdd719565af161f57e3c6cc8d13081364f17a/databases/sqlx/src/postgres.rs#L29) ``` Table "public.sessions" Column | Type | Collation | Nullable | Default ---------+------------------------+-----------+----------+---------...
## Description Sea-orm has the `sqlx-all` features where all sqlx features are enabled. Sea-orm-migration is missing this feature which is probably not expected. ### Workarounds Enable every sqlx-* feature manually....
Would it be possible to add support for this: ```rs #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)] #[sea_orm(table_name = "daily_user_activity")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id:...