{"id":15111597,"url":"https://github.com/carneles/goseeder","last_synced_at":"2026-01-19T12:33:17.705Z","repository":{"id":144275148,"uuid":"252389008","full_name":"carneles/goseeder","owner":"carneles","description":"Golang database seeder","archived":false,"fork":false,"pushed_at":"2020-06-30T03:24:02.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-04-05T17:46:11.353Z","etag":null,"topics":["database","database-migrations","databases","go","golang","migration","migration-tool","migrations","mysql","postgres","postgresql","seeder"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carneles.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":"2020-04-02T07:46:27.000Z","updated_at":"2020-06-30T03:24:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d63bdce-9180-4b87-ac41-6104d6b2b2ea","html_url":"https://github.com/carneles/goseeder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carneles/goseeder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carneles%2Fgoseeder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carneles%2Fgoseeder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carneles%2Fgoseeder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carneles%2Fgoseeder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carneles","download_url":"https://codeload.github.com/carneles/goseeder/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carneles%2Fgoseeder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28567897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","database-migrations","databases","go","golang","migration","migration-tool","migrations","mysql","postgres","postgresql","seeder"],"created_at":"2024-09-26T00:21:36.182Z","updated_at":"2026-01-19T12:33:17.688Z","avatar_url":"https://github.com/carneles.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/carneles/goseeder.svg?branch=develop)](https://travis-ci.com/carneles/goseeder)\n[![Go Report Card](https://goreportcard.com/badge/github.com/carneles/goseeder)](https://goreportcard.com/report/github.com/carneles/goseeder)\n\n\n# goseeder - Golang Database Seeder\nThis is a tool to seed data into database tables (like Laravel's `php artisan db:seed` and Node's `sequelize-cli seed`).\n\n## Data\nThe data that will be inserted into tables, should be placed in YAML formatted files. One YAML file represent one table and the order of files in the folder is respected.\nGoseeder uses `INSERT IGNORE` (on MySQL) and `INSERT ... ON CONFLICT DO NOTHING` (on Postgres) commands, so it is pretty safe to re-run the application again and again on tables having primary key or unique indexes.\n\nThis is the example of the YAML files:\n```\nschema: public\ntable: test\ndata:\n  - id: 5b5d2fec-fbdb-493a-aa39-85878da3e08e\n    name: one\n    created_at: now()\n  - id: c445876c-05bc-4479-b581-bcfd4356a9eb\n    name: two\n    created_at: now()\n```\n\nStore this file inside a folder, for example in `/folder/to/data`:\n```\n/folder\n    /to\n        /data\n            01_first_data.yaml\n            02_second_data.yaml\n```\n\nTo execute:\n```\ngoseeder seed -s /folder/to/data -d postgres://user:password@server:port/dbname?sslmode=disable\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarneles%2Fgoseeder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarneles%2Fgoseeder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarneles%2Fgoseeder/lists"}