{"id":20855631,"url":"https://github.com/raidenyn/sqldeploy","last_synced_at":"2025-05-12T06:31:19.718Z","repository":{"id":144187491,"uuid":"131625496","full_name":"raidenyn/sqldeploy","owner":"raidenyn","description":"Simple database creator from sqlproj under .NET Core and Docker environment","archived":false,"fork":false,"pushed_at":"2018-04-30T19:26:55.000Z","size":28,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T12:55:54.278Z","etag":null,"topics":["deployment","docker","dotnet","dotnet-core","mssql","sql","sqlprojects"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raidenyn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-04-30T17:26:48.000Z","updated_at":"2022-08-25T13:39:19.000Z","dependencies_parsed_at":"2023-08-13T12:03:54.705Z","dependency_job_id":null,"html_url":"https://github.com/raidenyn/sqldeploy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raidenyn%2Fsqldeploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raidenyn%2Fsqldeploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raidenyn%2Fsqldeploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raidenyn%2Fsqldeploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raidenyn","download_url":"https://codeload.github.com/raidenyn/sqldeploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253687515,"owners_count":21947692,"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":["deployment","docker","dotnet","dotnet-core","mssql","sql","sqlprojects"],"created_at":"2024-11-18T04:19:39.619Z","updated_at":"2025-05-12T06:31:19.710Z","avatar_url":"https://github.com/raidenyn.png","language":"C#","readme":"# SqlDeploy\n\nA little project for creation new databases in MS SQL Server from SQL Project files under .NET Core and Docker environment.\n\n[![Build status](https://ci.appveyor.com/api/projects/status/oi9nqy36rgj5b9se/branch/master?svg=true)](https://ci.appveyor.com/project/raidenyn/sqldeploy/branch/master)\n\nUnfortunately we cannot use Microsoft SSDT under Linux environment to create/migrate database version. But sometimes we want to run our tests from Docker and automatic database creation is really important detail for this. This library allows you to create and remove database easily.\n\n### NuGet installation\n``` cmd\ndotnet add package SqlDeploy\n```\n\n### Limitations\n* The lib can create database only. It cannot migrate or update exists databases.\n* Creation script doesn't sort your DB objects by relations nad creates objects one by one as they are defined in *.sqlproj file. So you have to sort you objects manually to prevent errors bad relations order.\n\n### Usage sample\n\n``` cs\n// Create a deployer\nvar deployer = new SqlProjectDeployer(\"path/to/your.sqlproj\");\n\n// Create a new db\nvar database = await deployer.RecreateToAsync(\n    new SqlConnection(\"\u003cconnection string to MS SQL\u003e\"), \n    databaseName: \"NewDBName\");\n\n// You can work with the new DB here\n\n// Delete the database after tests\nawait database.DeleteAsync();\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraidenyn%2Fsqldeploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraidenyn%2Fsqldeploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraidenyn%2Fsqldeploy/lists"}