{"id":27347595,"url":"https://github.com/jellydator/dotsqlx","last_synced_at":"2025-10-17T17:59:05.961Z","repository":{"id":57519195,"uuid":"248806179","full_name":"jellydator/dotsqlx","owner":"jellydator","description":"Dotsql wrapper allowing seemless work with jmoiron/sqlx","archived":false,"fork":false,"pushed_at":"2025-03-20T17:14:03.000Z","size":22,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T18:04:22.693Z","etag":null,"topics":["go","golang","sql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jellydator.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-03-20T16:47:04.000Z","updated_at":"2025-03-20T17:13:52.000Z","dependencies_parsed_at":"2024-06-19T04:08:03.043Z","dependency_job_id":"5e4effc8-1c76-4ef4-be70-1f9382a8adcb","html_url":"https://github.com/jellydator/dotsqlx","commit_stats":null,"previous_names":["jellydator/dotsqlx"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydator%2Fdotsqlx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydator%2Fdotsqlx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydator%2Fdotsqlx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydator%2Fdotsqlx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jellydator","download_url":"https://codeload.github.com/jellydator/dotsqlx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610346,"owners_count":21132921,"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":["go","golang","sql"],"created_at":"2025-04-12T18:04:10.214Z","updated_at":"2025-10-17T17:59:05.876Z","avatar_url":"https://github.com/jellydator.png","language":"Go","readme":"# dotsqlx\n\n[![GoDoc](https://godoc.org/github.com/jellydator/dotsqlx?status.png)](https://godoc.org/github.com/jellydator/dotsqlx)\n[![Build status](https://travis-ci.org/jellydator/dotsqlx.svg?branch=master)](https://travis-ci.org/jellydator/dotsqlx)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jellydator/dotsqlx)](https://goreportcard.com/report/github.com/jellydator/dotsqlx)\n\n[Dotsql](https://github.com/qustavo/dotsql) wrapper allowing seemless work with [jmoiron/sqlx](https://github.com/jmoiron/sqlx)\n\n## Installation\n```\ngo get github.com/jellydator/dotsqlx\n```\n\n## Usage\n```go\n// connect to db and obtain a new sqlx db instance.\ndbx, err := sqlx.Connect(\"postgres\", \"user=foo dbname=bar sslmode=disable\")\nif err != nil {\n    // handle error\n}\n\n// load your queries and obtain a new dotsql instance.\ndot, err := dotsql.LoadFromFile(\"./queries.sql\")\nif err != nil {\n    // handle error\n}\n\n// wrap dotsql's instance, extend its logic and allow sqlx support.\ndotx := dotsqlx.Wrap(dot)\n\n// execute named dotsql queries in sqlx methods.\nvar users []Users\nif err = dotx.Select(dbx, \u0026users, \"select_users\"); err != nil {\n    // handle error\n}\n\n// you can use dotsql's methods as well.\nres, err := dotx.Exec(dbx, \"insert_user\")\nif err != nil {\n    // handle error\n}\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellydator%2Fdotsqlx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjellydator%2Fdotsqlx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellydator%2Fdotsqlx/lists"}