You've already forked seamantic
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
e066509031
|
|||
|
0a585c09e5
|
Generated
+656
-337
File diff suppressed because it is too large
Load Diff
+8
-5
@@ -3,14 +3,17 @@ resolver = "2"
|
||||
members = ["seamantic"]
|
||||
|
||||
[workspace.package]
|
||||
edition = "2024"
|
||||
rust-version = "1.85.0"
|
||||
license-file = "LICENSE.md"
|
||||
|
||||
edition = "2024"
|
||||
rust-version = "1.88.0"
|
||||
|
||||
[workspace.dependencies]
|
||||
sea-orm = { version = "2.0.0-rc.27", default-features = false }
|
||||
sea-orm-migration = { version = "2.0.0-rc.27", default-features = false }
|
||||
seamantic = { path = "seamantic", version = "0.0.11", default-features = false }
|
||||
seamantic = { path = "seamantic", version = "=0.0.13", default-features = false }
|
||||
|
||||
sea-orm = { version = "=2.0.0-rc.38", default-features = false }
|
||||
sea-orm-migration = { version = "=2.0.0-rc.38", default-features = false }
|
||||
|
||||
serde = { version = "^1", default-features = false }
|
||||
serde_test = { version = "^1", default-features = false }
|
||||
tokio = { version = "^1", default-features = false }
|
||||
|
||||
@@ -9,7 +9,7 @@ A library to enhance SeaORM
|
||||
- build: `cargo hack --feature-powerset build`
|
||||
- clippy: `cargo hack --feature-powerset clippy -- -D warnings`
|
||||
- test: `cargo hack --feature-powerset test`
|
||||
- test old: `cargo +1.85 hack --feature-powerset test`
|
||||
- test old: `cargo +1.88 hack --feature-powerset test`
|
||||
- example: `cargo run --example=migrations --features=sqlite`
|
||||
- fmt: `cargo fmt --check`
|
||||
- docs: `RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features`
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
[package]
|
||||
name = "seamantic"
|
||||
version = "0.0.11"
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
version = "0.0.13"
|
||||
license-file.workspace = true
|
||||
|
||||
description = "A library to enhance SeaORM"
|
||||
repository = "https://github.com/QuantumShade/seamantic"
|
||||
license-file.workspace = true
|
||||
categories = []
|
||||
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
@@ -12,6 +12,8 @@ use sea_orm::{ColIdx, ColumnType, DbErr, QueryResult, TryFromU64, TryGetError, T
|
||||
pub type SeaOrmRepr = i64;
|
||||
|
||||
/// An opaque type representing a row ID
|
||||
///
|
||||
/// IDs should be tagged with `#[sea_orm(primary_key, auto_increment = false)]`
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
#[cfg_attr(feature = "serde", serde(transparent))]
|
||||
#[repr(transparent)]
|
||||
|
||||
@@ -21,7 +21,7 @@ use sea_orm_migration::sea_query::{ColumnDef, IntoIden};
|
||||
/// #[derive(Debug, Clone, DeriveEntityModel)]
|
||||
/// #[sea_orm(table_name = "rowid_test")]
|
||||
/// pub struct Model {
|
||||
/// #[sea_orm(column_type = "Integer", primary_key, nullable, auto_increment = false)]
|
||||
/// #[sea_orm(primary_key, auto_increment = false)]
|
||||
/// id: Id<Model>,
|
||||
/// }
|
||||
/// impl ActiveModelBehavior for ActiveModel {}
|
||||
@@ -77,7 +77,7 @@ mod entity_tests {
|
||||
#[derive(Debug, Clone, DeriveEntityModel)]
|
||||
#[sea_orm(table_name = "rowid_test")]
|
||||
pub struct Model {
|
||||
#[sea_orm(column_type = "Integer", primary_key, nullable, auto_increment = false)]
|
||||
#[sea_orm(primary_key, auto_increment = false)]
|
||||
id: Id<Model>,
|
||||
}
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
||||
|
||||
Reference in New Issue
Block a user