atm0s-media-server icon indicating copy to clipboard operation
atm0s-media-server copied to clipboard

chore(deps): bump sea-orm from 1.1.6 to 2.0.0-rc.15

Open dependabot[bot] opened this issue 4 weeks ago • 0 comments

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_opts to ConnectOptions SeaQL/sea-orm#2731
let mut opt = ConnectOptions::new(url);
opt.map_sqlx_postgres_opts(|pg_opt: PgConnectOptions| {
    pg_opt.ssl_mode(PgSslMode::Require)
});

1.1.16

Bug Fixes

#[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

1.1.15

Enhancements

#[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

    1. 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
    2. a set of Entities to load / store the access control rules to / from database
    3. a query auditor that dissect queries for necessary permissions (implemented in SeaQuery)
    4. integration of RBAC into SeaORM in form of RestrictedConnection. it implements ConnectionTrait, 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 { .. }) ));

... (truncated)

Commits

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

dependabot[bot] avatar Oct 27 '25 23:10 dependabot[bot]