{"id":16399872,"url":"https://github.com/justinrubek/nix-sqlx-example","last_synced_at":"2026-05-16T00:06:59.092Z","repository":{"id":143232448,"uuid":"613173195","full_name":"justinrubek/nix-sqlx-example","owner":"justinrubek","description":"Example of using sqlx in a nix flake, with pre-commit hooks","archived":false,"fork":false,"pushed_at":"2023-08-25T23:03:24.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T01:41:54.250Z","etag":null,"topics":["example","flake","nix","nix-flake","pre-commit","rust","sqlx"],"latest_commit_sha":null,"homepage":"","language":"Nix","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/justinrubek.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}},"created_at":"2023-03-13T03:22:31.000Z","updated_at":"2023-03-21T00:01:57.000Z","dependencies_parsed_at":"2024-11-09T15:44:33.008Z","dependency_job_id":"f239eadf-d424-4546-b939-bfe541d862b6","html_url":"https://github.com/justinrubek/nix-sqlx-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinrubek%2Fnix-sqlx-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinrubek%2Fnix-sqlx-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinrubek%2Fnix-sqlx-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinrubek%2Fnix-sqlx-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinrubek","download_url":"https://codeload.github.com/justinrubek/nix-sqlx-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240306537,"owners_count":19780641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["example","flake","nix","nix-flake","pre-commit","rust","sqlx"],"created_at":"2024-10-11T05:26:02.945Z","updated_at":"2026-05-16T00:06:54.067Z","avatar_url":"https://github.com/justinrubek.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqlx example\n\n\nThis is a small example of using nix to manage sqlx in a project.\nThe main benefit of the current configuration is the use of a custom pre-commit hook inside the nix devShell.\nThe hook runs `cargo sqlx prepare --merged` which will ensure that a commit cannot be made without updating sqlx's `sqlx-data.json`.\nThe hook is disabled during `nix flake check` runs, so it will not cause issues with a sandbox.\nAdditionally a `build.rs` script is included to set environment variables for docs.rs builds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinrubek%2Fnix-sqlx-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinrubek%2Fnix-sqlx-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinrubek%2Fnix-sqlx-example/lists"}