atm0s-media-server
atm0s-media-server copied to clipboard
chore(deps): bump sea-orm from 1.1.6 to 2.0.0-rc.15
Bumps sea-orm from 1.1.6 to 2.0.0-rc.15.
Release notes
Sourced from sea-orm's releases.
1.1.17
New Features
- Added
map_sqlx_mysql_opts,map_sqlx_postgres_opts,map_sqlx_sqlite_optstoConnectOptionsSeaQL/sea-orm#2731let mut opt = ConnectOptions::new(url); opt.map_sqlx_postgres_opts(|pg_opt: PgConnectOptions| { pg_opt.ssl_mode(PgSslMode::Require) });
- Added
mariadb-use-returningto use returning syntax for MariaDB SeaQL/sea-orm#2710- Released
sea-orm-rocket0.6 SeaQL/sea-orm#27321.1.16
Bug Fixes
- Fix enum casting in DerivePartialModel SeaQL/sea-orm#2719 SeaQL/sea-orm#2720
#[derive(DerivePartialModel)] #[sea_orm(entity = "active_enum::Entity", from_query_result, alias = "zzz")] struct PartialWithEnumAndAlias { #[sea_orm(from_col = "tea")] foo: Option<Tea>, }let sql = active_enum::Entity::find() .into_partial_model::<PartialWithEnumAndAlias>() .into_statement(DbBackend::Postgres) .sql;
assert_eq!( sql, r#"SELECT CAST("zzz"."tea" AS "text") AS "foo" FROM "public"."active_enum""#, );
Enhancements
- [sea-orm-cli] Use tokio (optional) instead of async-std SeaQL/sea-orm#2721
1.1.15
Enhancements
- Allow
DerivePartialModelto have nested aliases SeaQL/sea-orm#2686#[derive(DerivePartialModel)] #[sea_orm(entity = "bakery::Entity", from_query_result)] struct Factory { id: i32, #[sea_orm(from_col = "name")] </tr></table>
... (truncated)
Changelog
Sourced from sea-orm's changelog.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
2.0.0 - pending
New Features
Role Based Access Control SeaQL/sea-orm#2683
- a hierarchical RBAC engine that is table scoped
- a user has 1 (and only 1) role
- a role has a set of permissions on a set of resources
- permissions here are CRUD operations and resources are tables
- but the engine is generic so can be used for other things
- roles have hierarchy, and so can inherit permissions
- there is a wildcard
*to grant all permissions or resources- individual users can have rules override
- a set of Entities to load / store the access control rules to / from database
- a query auditor that dissect queries for necessary permissions (implemented in SeaQuery)
- integration of RBAC into SeaORM in form of
RestrictedConnection. it implementsConnectionTrait, and will audit all queries and perform permission check, and reject them accordingly. all Entity operations except raw SQL are supported. complex joins, insert select from, and even CTE queries are supported.// load rules from database db_conn.load_rbac().await?;// admin can create bakery let db = db_conn.restricted_for(admin)?; let seaside_bakery = bakery::ActiveModel { name: Set("SeaSide Bakery".to_owned()), ..Default::default() }; assert!(Bakery::insert(seaside_bakery).exec(&db).await.is_ok());
// public cannot create bakery let db = db_conn.restricted_for(public)?; assert!(matches!( Bakery::insert(bakery::ActiveModel::default()) .exec(&db) .await, Err(DbErr::AccessDenied { .. }) ));
- Overhauled
Entity::insert_many. We've made a number of changes SeaQL/sea-orm#2628
... (truncated)
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)