Skip to content

Commit

Permalink
Restructure generated code to make it more friendly for a future proc…
Browse files Browse the repository at this point in the history
… macro (#68)
  • Loading branch information
carllerche authored Feb 21, 2025
1 parent ec9121f commit d5447cb
Show file tree
Hide file tree
Showing 70 changed files with 4,311 additions and 4,500 deletions.
763 changes: 386 additions & 377 deletions examples/composite-key/src/db/todo.rs

Large diffs are not rendered by default.

766 changes: 293 additions & 473 deletions examples/composite-key/src/db/user.rs

Large diffs are not rendered by default.

733 changes: 371 additions & 362 deletions examples/cratehub/src/db/package.rs

Large diffs are not rendered by default.

783 changes: 298 additions & 485 deletions examples/cratehub/src/db/user.rs

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions examples/cratehub/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ async fn main() -> toasty::Result<()> {
let p1 = u1.packages().create().name("tokio").exec(&db).await?;

println!("==> Package::find_by_user_and_id(&u1, &p1.id)");
let package = Package::find_by_user_id_and_id(&u1.id, &p1.id)
.get(&db)
.await?;
let package = Package::get_by_user_id_and_id(&db, &u1.id, &p1.id).await?;

println!("{package:#?}");

Expand Down
Loading

0 comments on commit d5447cb

Please sign in to comment.