{"id":28327561,"url":"https://github.com/trueifnotfalse/dbassert","last_synced_at":"2026-04-29T14:39:53.330Z","repository":{"id":253740805,"uuid":"844379761","full_name":"trueifnotfalse/dbassert","owner":"trueifnotfalse","description":"Go database assert package","archived":false,"fork":false,"pushed_at":"2024-12-03T09:31:08.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T05:39:15.399Z","etag":null,"topics":["database","golang","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trueifnotfalse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-19T06:19:29.000Z","updated_at":"2024-12-03T09:30:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8cbfaab-2989-46b8-a673-392f03f8127c","html_url":"https://github.com/trueifnotfalse/dbassert","commit_stats":null,"previous_names":["trueifnotfalse/dbassert"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/trueifnotfalse/dbassert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trueifnotfalse%2Fdbassert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trueifnotfalse%2Fdbassert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trueifnotfalse%2Fdbassert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trueifnotfalse%2Fdbassert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trueifnotfalse","download_url":"https://codeload.github.com/trueifnotfalse/dbassert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trueifnotfalse%2Fdbassert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32429803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"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":["database","golang","testing"],"created_at":"2025-05-26T03:15:10.391Z","updated_at":"2026-04-29T14:39:53.324Z","avatar_url":"https://github.com/trueifnotfalse.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dbassert\n\nThe `dbassert` package provides several useful functions to help you write integration tests.\n\n# Example exists usage:\n\n```go\nimport (\n    \"database/sql\"\n    _ \"github.com/lib/pq\"\n    \"github.com/trueifnotfalse/dbassert\"\n)\n\nfunc TestSomeDb(t *testing.T) {\n\tconn, err := sql.Open(\"postgres\", \"postgres://postgres:secret@localhost:%s?sslmode=disable\")\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tdefer conn.Close()\n    _, err = conn.Exec(`INSERT INTO your_table(name) VALUES('John')`)\n\tdbassert := dbassert.New(conn)\n\n    // check row exists in table\n\tdbassert.ExistsInDatabase(t, \"your_table\", map[string]any{\n        \"name\": \"John\",\n    }))\n\n    // check row not exists in table\n    dbassert.NotExistsInDatabase(t, \"your_table\", map[string]any{\n        \"name\": \"Boris\",\n    }))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrueifnotfalse%2Fdbassert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrueifnotfalse%2Fdbassert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrueifnotfalse%2Fdbassert/lists"}