{"id":21800987,"url":"https://github.com/wpcodevo/rust-postgres-crud-sqlx","last_synced_at":"2026-04-01T22:04:37.818Z","repository":{"id":121164909,"uuid":"592393701","full_name":"wpcodevo/rust-postgres-crud-sqlx","owner":"wpcodevo","description":"In this article, you'll learn how to build a CRUD API in Rust using SQLX, Actix-web, and PostgreSQL. Learning how to build a CRUD API as a developer will equip you with valuable skills for building robust, maintainable, and scalable applications.","archived":false,"fork":false,"pushed_at":"2023-01-25T21:21:24.000Z","size":24,"stargazers_count":54,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-28T00:37:43.000Z","etag":null,"topics":["actix-web","api","crud","crud-api","crud-application","crud-operations","postgres","postgresql","restapi","rust","rust-lang","sqlx"],"latest_commit_sha":null,"homepage":"https://codevoweb.com/rust-build-a-crud-api-with-sqlx-and-postgresql/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpcodevo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-23T16:31:44.000Z","updated_at":"2026-03-25T04:53:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"37272f6d-b067-43e3-9b0f-7d3344cf479e","html_url":"https://github.com/wpcodevo/rust-postgres-crud-sqlx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wpcodevo/rust-postgres-crud-sqlx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-postgres-crud-sqlx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-postgres-crud-sqlx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-postgres-crud-sqlx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-postgres-crud-sqlx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpcodevo","download_url":"https://codeload.github.com/wpcodevo/rust-postgres-crud-sqlx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-postgres-crud-sqlx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actix-web","api","crud","crud-api","crud-application","crud-operations","postgres","postgresql","restapi","rust","rust-lang","sqlx"],"created_at":"2024-11-27T11:15:31.779Z","updated_at":"2026-04-01T22:04:37.791Z","avatar_url":"https://github.com/wpcodevo.png","language":"Rust","readme":"# Rust - Build a CRUD API with SQLX and PostgreSQL\n\nIn this article, you'll learn how to build a CRUD API in Rust using SQLX, Actix-web, and PostgreSQL. Learning how to build a CRUD API as a developer will equip you with valuable skills for building robust, maintainable, and scalable applications.\n\n![Rust - Build a CRUD API with SQLX and PostgreSQL](https://codevoweb.com/wp-content/uploads/2023/01/Rust-Build-a-CRUD-API-with-SQLX-and-PostgreSQL.webp)\n\n## Topics Covered\n\n- Run the Rust SQLX Project Locally\n- Run the Rust SQLX API with a React.js App\n- Setup the Rust Project\n- Setup PostgreSQL and pgAdmin with Docker\n- Create and Migrate the Database Queries\n- Create the SQLX Database Model\n- Create the Validation Schemas\n- Create CRUD Route Functions\n    - Fetch All Records\n    - Add New Record\n    - Retrieve a Single Record\n    - Edit an Existing Record\n    - Delete a Record\n    - Merge the Route Functions\n- Register the Routes and Add CORS\n- Test the Rust CRUD API\n    - Perform the CREATE Operation\n    - Perform the UPDATE Operation\n    - Perform the READ Operation\n    - Perform the DELETE Operation\n\n\nRead the entire article here: [https://codevoweb.com/rust-build-a-crud-api-with-sqlx-and-postgresql/](https://codevoweb.com/rust-build-a-crud-api-with-sqlx-and-postgresql/)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Frust-postgres-crud-sqlx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpcodevo%2Frust-postgres-crud-sqlx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Frust-postgres-crud-sqlx/lists"}