{"id":25816534,"url":"https://github.com/alexandermatveev/dbmap","last_synced_at":"2025-08-09T10:18:11.279Z","repository":{"id":196709753,"uuid":"696976270","full_name":"AlexanderMatveev/dbmap","owner":"AlexanderMatveev","description":"Tiny zero-dependency package to auto map struct fields to database columns and vice versa without ORM's.","archived":false,"fork":false,"pushed_at":"2023-09-28T10:24:05.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T11:58:53.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/AlexanderMatveev/dbmap","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/AlexanderMatveev.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":"2023-09-26T19:50:03.000Z","updated_at":"2023-09-28T10:23:43.000Z","dependencies_parsed_at":"2024-06-21T15:22:23.314Z","dependency_job_id":"be164928-49b8-44ed-a420-f4e2ed4d28c7","html_url":"https://github.com/AlexanderMatveev/dbmap","commit_stats":null,"previous_names":["alexandermatveev/dbmap"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/AlexanderMatveev/dbmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderMatveev%2Fdbmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderMatveev%2Fdbmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderMatveev%2Fdbmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderMatveev%2Fdbmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderMatveev","download_url":"https://codeload.github.com/AlexanderMatveev/dbmap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderMatveev%2Fdbmap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269564191,"owners_count":24438933,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-02-28T05:34:20.934Z","updated_at":"2025-08-09T10:18:11.228Z","avatar_url":"https://github.com/AlexanderMatveev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DbMap\nTiny zero-dependency package to auto map struct fields to database columns and vice versa without ORM's.\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/AlexanderMatveev/dbmap)](https://goreportcard.com/report/github.com/AlexanderMatveev/dbmap)\n\n## Usage\n\n```go\nimport (\n    \"github.com/AlexanderMatveev/dbmap\"\n    \"github.com/Masterminds/squirrel\"\n)\n\ntype Entity struct {\n    Id            int       `db:\"id\"`\n    Name          string    `db:\"name\"`\n    DateTimeField time.Time `db:\"created_at\"`\n    FieldNotIdDb  int\n    NullableField *int\n}\n\nvar structColumns = dbmap.Columns(reflect.TypeOf(Entity{}))\n\nfunc main(){\n    var e Entity\n    // ...\n    squirrel.Select(structColumns...)\n    // ...\n    rows.Scan(dbmap.Scan(\u0026e)...)\n    // ...\n    squirrel.Insert(\"table\").Columns(structColumns...).Values(dbmap.Values(e)...)\n    // ...\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandermatveev%2Fdbmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandermatveev%2Fdbmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandermatveev%2Fdbmap/lists"}