{"id":15776120,"url":"https://github.com/go-rel/mssql","last_synced_at":"2025-03-14T06:32:29.142Z","repository":{"id":38327641,"uuid":"345047775","full_name":"go-rel/mssql","owner":"go-rel","description":"Microsoft SQL server adapter for REL written in Golang.","archived":false,"fork":false,"pushed_at":"2024-07-02T05:05:19.000Z","size":155,"stargazers_count":1,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T16:20:42.425Z","etag":null,"topics":["database","golang","hacktoberfest","mssql","orm","sqlserver","sqlserver-2017","sqlserver-2019"],"latest_commit_sha":null,"homepage":"https://go-rel.github.io/","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/go-rel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Fs02"}},"created_at":"2021-03-06T08:50:54.000Z","updated_at":"2024-07-02T05:05:21.000Z","dependencies_parsed_at":"2023-12-22T14:03:47.171Z","dependency_job_id":"18f9d8af-c473-483e-a1cf-dd7ea36d9861","html_url":"https://github.com/go-rel/mssql","commit_stats":{"total_commits":92,"total_committers":5,"mean_commits":18.4,"dds":"0.44565217391304346","last_synced_commit":"e276b260f29d55f1633fcf179481798ab8732016"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-rel%2Fmssql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-rel%2Fmssql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-rel%2Fmssql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-rel%2Fmssql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-rel","download_url":"https://codeload.github.com/go-rel/mssql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243422771,"owners_count":20288520,"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":["database","golang","hacktoberfest","mssql","orm","sqlserver","sqlserver-2017","sqlserver-2019"],"created_at":"2024-10-04T17:04:55.153Z","updated_at":"2025-03-14T06:32:27.753Z","avatar_url":"https://github.com/go-rel.png","language":"Go","funding_links":["https://github.com/sponsors/Fs02"],"categories":[],"sub_categories":[],"readme":"# mssql\n\n[![GoDoc](https://godoc.org/github.com/go-rel/mssql?status.svg)](https://pkg.go.dev/github.com/go-rel/mssql)\n[![Integration](https://github.com/go-rel/mssql/actions/workflows/integration.yml/badge.svg?branch=main)](https://github.com/go-rel/mssql/actions/workflows/integration.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/go-rel/mssql)](https://goreportcard.com/report/github.com/go-rel/mssql)\n[![codecov](https://codecov.io/gh/go-rel/mssql/branch/main/graph/badge.svg?token=3VBLHCCG4N)](https://codecov.io/gh/go-rel/mssql)\n[![Gitter chat](https://badges.gitter.im/go-rel/rel.png)](https://gitter.im/go-rel/rel)\n\nMicrosoft SQL Server adapter for REL.\n\n## Example \n\n```go\npackage main\n\nimport (\n\t\"context\"\n\n\t_ \"github.com/microsoft/go-mssqldb\"\n\t\"github.com/go-rel/mssql\"\n\t\"github.com/go-rel/rel\"\n)\n\nfunc main() {\n\t// open mssql connection.\n\tadapter, err := mssql.Open(\"sqlserver://sa:REL2021-mssql@localhost:1433?database=rel\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer adapter.Close()\n\n\t// initialize REL's repo.\n\trepo := rel.New(adapter)\n\trepo.Ping(context.TODO())\n}\n\n```\n\n## Supported Driver\n\n- github.com/microsoft/go-mssqldb\n- github.com/denisenkom/go-mssqldb\n\n## Supported Database\n\n- Microsoft SQL Server 2017\n- Microsoft SQL Server 2019\n\n## Testing\n\n### Start Microsoft SQL server in Docker\n\n```console\ndocker run -it --rm -p 1434:1433 -e \"ACCEPT_EULA=Y\" -e \"SA_PASSWORD=REL2021-mssql\" -e \"MSSQL_PID=Developer\"  mcr.microsoft.com/mssql/server:2019-latest\n```\n\n### Run tests\n\n```console\nMSSQL_DATABASE=\"sqlserver://sa:REL2021-mssql@localhost:1434\" go test ./...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-rel%2Fmssql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-rel%2Fmssql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-rel%2Fmssql/lists"}