Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update proc-macro-crate requirement from 2.0.0 to 3.0.0 #88

Merged
merged 5 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
with:
files: lcov.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

test:
name: Integration Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ async fn test_episodes_service_get_many_pagination() -> Result<()> {
vec![
Transaction::from_sql_and_values(
DatabaseBackend::Postgres,
r#"SELECT COUNT(*) AS num_items FROM (SELECT "episodes"."id", "episodes"."created_at", "episodes"."updated_at", "episodes"."title", "episodes"."summary", "episodes"."picture", "episodes"."show_id" FROM "episodes" ORDER BY "episodes"."created_at" DESC) AS "sub_query""#,
r#"SELECT COUNT(*) AS num_items FROM (SELECT "episodes"."id", "episodes"."created_at", "episodes"."updated_at", "episodes"."title", "episodes"."summary", "episodes"."picture", "episodes"."show_id" FROM "episodes") AS "sub_query""#,
vec![]
),
Transaction::from_sql_and_values(
Expand Down Expand Up @@ -415,7 +415,7 @@ async fn test_episodes_service_get_many_pagination_with_related() -> Result<()>
vec![
Transaction::from_sql_and_values(
DatabaseBackend::Postgres,
r#"SELECT COUNT(*) AS num_items FROM (SELECT "episodes"."id" AS "A_id", "episodes"."created_at" AS "A_created_at", "episodes"."updated_at" AS "A_updated_at", "episodes"."title" AS "A_title", "episodes"."summary" AS "A_summary", "episodes"."picture" AS "A_picture", "episodes"."show_id" AS "A_show_id", "shows"."id" AS "B_id", "shows"."created_at" AS "B_created_at", "shows"."updated_at" AS "B_updated_at", "shows"."title" AS "B_title", "shows"."summary" AS "B_summary", "shows"."picture" AS "B_picture" FROM "episodes" LEFT JOIN "shows" ON "episodes"."show_id" = "shows"."id" ORDER BY "episodes"."created_at" DESC) AS "sub_query""#,
r#"SELECT COUNT(*) AS num_items FROM (SELECT "episodes"."id" AS "A_id", "episodes"."created_at" AS "A_created_at", "episodes"."updated_at" AS "A_updated_at", "episodes"."title" AS "A_title", "episodes"."summary" AS "A_summary", "episodes"."picture" AS "A_picture", "episodes"."show_id" AS "A_show_id", "shows"."id" AS "B_id", "shows"."created_at" AS "B_created_at", "shows"."updated_at" AS "B_updated_at", "shows"."title" AS "B_title", "shows"."summary" AS "B_summary", "shows"."picture" AS "B_picture" FROM "episodes" LEFT JOIN "shows" ON "episodes"."show_id" = "shows"."id") AS "sub_query""#,
vec![]
),
Transaction::from_sql_and_values(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ async fn test_profiles_service_get_many_pagination() -> Result<()> {
vec![
Transaction::from_sql_and_values(
DatabaseBackend::Postgres,
r#"SELECT COUNT(*) AS num_items FROM (SELECT "profiles"."id", "profiles"."created_at", "profiles"."updated_at", "profiles"."email", "profiles"."display_name", "profiles"."picture", "profiles"."city", "profiles"."state_province", "profiles"."user_id" FROM "profiles" ORDER BY "profiles"."created_at" DESC) AS "sub_query""#,
r#"SELECT COUNT(*) AS num_items FROM (SELECT "profiles"."id", "profiles"."created_at", "profiles"."updated_at", "profiles"."email", "profiles"."display_name", "profiles"."picture", "profiles"."city", "profiles"."state_province", "profiles"."user_id" FROM "profiles") AS "sub_query""#,
vec![]
),
Transaction::from_sql_and_values(
Expand Down Expand Up @@ -442,7 +442,7 @@ async fn test_profiles_service_get_many_pagination_with_related() -> Result<()>
vec![
Transaction::from_sql_and_values(
DatabaseBackend::Postgres,
r#"SELECT COUNT(*) AS num_items FROM (SELECT "profiles"."id" AS "A_id", "profiles"."created_at" AS "A_created_at", "profiles"."updated_at" AS "A_updated_at", "profiles"."email" AS "A_email", "profiles"."display_name" AS "A_display_name", "profiles"."picture" AS "A_picture", "profiles"."city" AS "A_city", "profiles"."state_province" AS "A_state_province", "profiles"."user_id" AS "A_user_id", "users"."id" AS "B_id", "users"."created_at" AS "B_created_at", "users"."updated_at" AS "B_updated_at", "users"."username" AS "B_username", "users"."is_active" AS "B_is_active" FROM "profiles" LEFT JOIN "users" ON "profiles"."user_id" = "users"."id" ORDER BY "profiles"."created_at" DESC) AS "sub_query""#,
r#"SELECT COUNT(*) AS num_items FROM (SELECT "profiles"."id" AS "A_id", "profiles"."created_at" AS "A_created_at", "profiles"."updated_at" AS "A_updated_at", "profiles"."email" AS "A_email", "profiles"."display_name" AS "A_display_name", "profiles"."picture" AS "A_picture", "profiles"."city" AS "A_city", "profiles"."state_province" AS "A_state_province", "profiles"."user_id" AS "A_user_id", "users"."id" AS "B_id", "users"."created_at" AS "B_created_at", "users"."updated_at" AS "B_updated_at", "users"."username" AS "B_username", "users"."is_active" AS "B_is_active" FROM "profiles" LEFT JOIN "users" ON "profiles"."user_id" = "users"."id") AS "sub_query""#,
vec![]
),
Transaction::from_sql_and_values(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async fn test_shows_service_get_many_pagination() -> Result<()> {
vec![
Transaction::from_sql_and_values(
DatabaseBackend::Postgres,
r#"SELECT COUNT(*) AS num_items FROM (SELECT "shows"."id", "shows"."created_at", "shows"."updated_at", "shows"."title", "shows"."summary", "shows"."picture" FROM "shows" ORDER BY "shows"."created_at" DESC) AS "sub_query""#,
r#"SELECT COUNT(*) AS num_items FROM (SELECT "shows"."id", "shows"."created_at", "shows"."updated_at", "shows"."title", "shows"."summary", "shows"."picture" FROM "shows") AS "sub_query""#,
vec![]
),
Transaction::from_sql_and_values(
Expand Down
2 changes: 1 addition & 1 deletion nakago_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ proc-macro = true
[dependencies]
darling = "0.20.1"
proc-macro2 = "1.0.24"
proc-macro-crate = "2.0.0"
proc-macro-crate = "3.1.0"
quote = "1.0.9"
syn = { version = "2.0", features = [
"full",
Expand Down
Loading