{"id":21133327,"url":"https://github.com/helloticket/go-dbunit","last_synced_at":"2025-03-14T12:29:12.375Z","repository":{"id":57708598,"uuid":"190779410","full_name":"helloticket/go-dbunit","owner":"helloticket","description":"Library for integration tests","archived":false,"fork":false,"pushed_at":"2023-02-25T00:53:09.000Z","size":26,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T06:25:50.253Z","etag":null,"topics":["golang","library"],"latest_commit_sha":null,"homepage":null,"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/helloticket.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":"2019-06-07T16:55:25.000Z","updated_at":"2021-11-05T18:10:55.000Z","dependencies_parsed_at":"2024-06-20T08:17:35.402Z","dependency_job_id":"12166997-8e4b-4c7a-9e52-ef41bfe0fb5a","html_url":"https://github.com/helloticket/go-dbunit","commit_stats":null,"previous_names":["codenplaycorp/go-dbunit"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloticket%2Fgo-dbunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloticket%2Fgo-dbunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloticket%2Fgo-dbunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloticket%2Fgo-dbunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helloticket","download_url":"https://codeload.github.com/helloticket/go-dbunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243576824,"owners_count":20313495,"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":["golang","library"],"created_at":"2024-11-20T06:06:40.306Z","updated_at":"2025-03-14T12:29:12.339Z","avatar_url":"https://github.com/helloticket.png","language":"Go","readme":"# go-dbunit\n\ngo-dbunit is a extension targeted at database-driven projects inspired by dbunit for java and go-testfixtures.\n\n## Using\n\n```bash\nimport \"github.com/helloticket/go-dbunit\"\n\ndb, err := sql.Open(\"postgres\", ds)\nif err != nil {\n    log.Fatalf(\"Failed to connect to database: %v\\n\", err)\n}\n\ndbFactory := dbunit.NewPostgresDatabaseFactory(db)\ndataSet := dbunit.NewFlatYmlDataSet(\"testdata/fixtures\")\ndbunit.DeleteAndInsert(dbFactory, dataSet).Execute(\"posts.yml\")\n```\n\n## Test (for only suite test go-dbunit)\n\n```bash\ndocker run --rm -p 5454:5432 -e POSTGRES_USER=dbunit -e POSTGRES_PASSWORD=dbunit00 postgres:9.6\n```\n\n## Inspired\n\n- http://dbunit.sourceforge.net\n- https://github.com/go-testfixtures/testfixtures\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloticket%2Fgo-dbunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelloticket%2Fgo-dbunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloticket%2Fgo-dbunit/lists"}