mirror of
https://github.com/Phundrak/georm.git
synced 2025-12-19 10:44:38 +01:00
Compare commits
2 Commits
0.2.0
...
8468c3cd61
| Author | SHA1 | Date | |
|---|---|---|---|
|
8468c3cd61
|
|||
|
13c7a413d7
|
6
Cargo.lock
generated
6
Cargo.lock
generated
@@ -601,7 +601,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "georm"
|
name = "georm"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"georm-macros",
|
"georm-macros",
|
||||||
@@ -611,7 +611,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "georm-macros"
|
name = "georm-macros"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"deluxe",
|
"deluxe",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
@@ -621,7 +621,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "georm-users-comments-and-followers"
|
name = "georm-users-comments-and-followers"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"georm",
|
"georm",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ members = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["Lucien Cartier-Tilet <lucien@phundrak.com>"]
|
authors = ["Lucien Cartier-Tilet <lucien@phundrak.com>"]
|
||||||
homepage = "https://github.com/Phundrak/georm"
|
homepage = "https://github.com/Phundrak/georm"
|
||||||
@@ -27,7 +27,7 @@ repository.workspace = true
|
|||||||
version.workspace = true
|
version.workspace = true
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
georm-macros = { path = "georm-macros" }
|
georm-macros = { version = "=0.2.1", path = "georm-macros" }
|
||||||
|
|
||||||
[workspace.dependencies.sqlx]
|
[workspace.dependencies.sqlx]
|
||||||
version = "0.8.6"
|
version = "0.8.6"
|
||||||
|
|||||||
@@ -565,16 +565,19 @@ cargo run help # For a list of all available actions
|
|||||||
|
|
||||||
### High Priority
|
### High Priority
|
||||||
- **Transaction Support**: Comprehensive transaction handling with atomic operations
|
- **Transaction Support**: Comprehensive transaction handling with atomic operations
|
||||||
|
- **Simplified Relationship Syntax**: Remove redundant table/remote_id specifications by inferring them from target entity metadata
|
||||||
|
- **Multi-Database Support**: MySQL and SQLite support with feature flags
|
||||||
|
|
||||||
### Medium Priority
|
### Medium Priority
|
||||||
- **Composite Key Relationships**: Add relationship support (one-to-one, one-to-many, many-to-many) for entities with composite primary keys
|
- **Composite Key Relationships**: Add relationship support (one-to-one, one-to-many, many-to-many) for entities with composite primary keys
|
||||||
- **Multi-Database Support**: MySQL and SQLite support with feature flags
|
|
||||||
- **Field-Based Queries**: Generate `find_by_{field_name}` methods that return `Vec<T>` for regular fields or `Option<T>` for unique fields
|
- **Field-Based Queries**: Generate `find_by_{field_name}` methods that return `Vec<T>` for regular fields or `Option<T>` for unique fields
|
||||||
- **Relationship Optimization**: Eager loading and N+1 query prevention
|
- **Relationship Optimization**: Eager loading and N+1 query prevention
|
||||||
- **Soft Delete**: Optional soft delete with `deleted_at` timestamps
|
- **Automatic Table Name Inference**: Infer table names from struct names (PascalCase → snake_case plural), eliminating the need for explicit `#[georm(table = "...")]` attributes
|
||||||
|
- **Alternative Attribute Syntax**: Introduce path-based attribute syntax as sugar (e.g., `#[table("users")]`, `#[id]`) while maintaining backward compatibility
|
||||||
|
|
||||||
### Lower Priority
|
### Lower Priority
|
||||||
- **Migration Support**: Schema generation and evolution utilities
|
- **Migration Support**: Schema generation and evolution utilities
|
||||||
|
- **Soft Delete**: Optional soft delete with `deleted_at` timestamps
|
||||||
- **Enhanced Error Handling**: Custom error types with better context
|
- **Enhanced Error Handling**: Custom error types with better context
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|||||||
Reference in New Issue
Block a user