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:
Matthieu Bessat 2025-11-11 17:10:47 +01:00
parent 32ef1f7b33
commit 5f45671b74
25 changed files with 764 additions and 140 deletions

View file

@ -13,19 +13,19 @@ name = "sqlx-generator"
path = "src/main.rs"
[dependencies]
anyhow = "1.0.95"
argh = "0.1.13"
attribute-derive = "0.10.3"
convert_case = "0.6.0"
fully_pub = "0.1.4"
heck = "0.5.0"
prettyplease = "0.2.25"
proc-macro2 = "1.0.92"
quote = "1.0.38"
serde = "1.0.216"
serde_json = "1.0.134"
structmeta = "0.3.0"
syn = { version = "2.0.92", features = ["extra-traits", "full", "parsing"] }
anyhow = "1.0"
argh = "0.1"
attribute-derive = "0.10"
convert_case = "0.6"
fully_pub = "0.1"
heck = "0.5"
prettyplease = "0.2"
proc-macro2 = "1.0"
quote = "1.0"
serde = "1.0"
serde_json = "1.0"
structmeta = "0.3"
syn = { version = "2.0", features = ["extra-traits", "full", "parsing"] }
[lints.clippy]
uninlined_format_args = "allow"