Fix mistake in sqlx::test fixtures docs (#3604)

Alternative option for the sqlx::test fixtures referenced the same fixture twice
This commit is contained in:
Andrew Eggleston 2024-11-26 14:00:05 -05:00 committed by GitHub
parent 80314609ac
commit 8dfd3e0bc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -203,7 +203,7 @@ use sqlx::PgPool;
use serde_json::json;
// Alternatives:
// #[sqlx::test(fixtures("./fixtures/users.sql", "./fixtures/users.sql"))]
// #[sqlx::test(fixtures("./fixtures/users.sql", "./fixtures/posts.sql"))]
// or
// #[sqlx::test(fixtures(path = "./fixtures", scripts("users", "posts")))]
#[sqlx::test(fixtures("users", "posts"))]