feat: one-to-many relation helper
Allow one to specify that a field of a model is a foreign key. It will generate a bunch of helper methods to query related entities from one entity.
This commit is contained in:
parent
32ef1f7b33
commit
5f45671b74
25 changed files with 764 additions and 140 deletions
20
lib/sqlxgentools_misc/Cargo.toml
Normal file
20
lib/sqlxgentools_misc/Cargo.toml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[package]
|
||||
name = "sqlxgentools_misc"
|
||||
description = "Various misc class to use in applications that use sqlxgentools"
|
||||
publish = true
|
||||
edition.workspace = true
|
||||
authors.workspace = true
|
||||
version.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[dependencies]
|
||||
sqlx-core = { version = "=0.8.6" }
|
||||
sqlx-sqlite = { version = "=0.8.6", features = ["offline"] }
|
||||
fully_pub = "0.1"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
||||
[lib]
|
||||
|
||||
[lints.clippy]
|
||||
uninlined_format_args = "allow"
|
||||
Loading…
Add table
Add a link
Reference in a new issue