{"id":16105802,"url":"https://github.com/devlights/sqlmap","last_synced_at":"2026-05-01T14:31:52.426Z","repository":{"id":213350038,"uuid":"733819728","full_name":"devlights/sqlmap","owner":"devlights","description":"A small library that maps the results of *sql.Rows to map[string]any.","archived":false,"fork":false,"pushed_at":"2024-05-16T10:07:46.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-21T00:44:45.732Z","etag":null,"topics":["database","go","golang","sql","utility"],"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/devlights.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-12-20T07:46:03.000Z","updated_at":"2024-05-16T10:07:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c1c08fb-6b6f-4c9d-878c-2a88fbdc0812","html_url":"https://github.com/devlights/sqlmap","commit_stats":null,"previous_names":["devlights/sqlmap"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/devlights/sqlmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fsqlmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fsqlmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fsqlmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fsqlmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlights","download_url":"https://codeload.github.com/devlights/sqlmap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fsqlmap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32501399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["database","go","golang","sql","utility"],"created_at":"2024-10-09T19:10:41.731Z","updated_at":"2026-05-01T14:31:52.404Z","avatar_url":"https://github.com/devlights.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqlmap\n\nA small library that maps the results of ```*sql.Rows``` to ```[]map[string]any```.\n\n## Install\n\n```sh\ngo get github.com/devlights/sqlmap@latest\n```\n\n## Usage\n\n```go\nvar (\n    db  *sql.DB\n    err error\n)\n\ndb, _ := sql.Open(\"sqlite\", \"path/to/db\")\ndefer db.Close()\n\nvar (\n    rows *sql.Rows\n)\n\nrows, _ := db.Query(\"SELECT * FROM xxxxx\")\ndefer rows.Close()\n\nvar (\n    mapRows []RowView\n)\n\nmapRows, err := sqlmap.MapRows(rows)\nif err != nil {\n    return err\n}\n\nfmt.Println(mapRows)\n\nfor _, v := range m {\n    name, err := v.Get(\"Name\")\n    if err != nil {\n        t.Error(err)\n    }\n\n    fmt.Printf(\"[row] %v\\n\", name)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlights%2Fsqlmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlights%2Fsqlmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlights%2Fsqlmap/lists"}