{"id":20156230,"url":"https://github.com/dsccommunity/xdatabase","last_synced_at":"2025-04-09T22:23:21.144Z","repository":{"id":30468241,"uuid":"34022226","full_name":"dsccommunity/xDatabase","owner":"dsccommunity","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-25T14:11:23.000Z","size":138,"stargazers_count":20,"open_issues_count":11,"forks_count":24,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-24T00:16:40.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/dsccommunity.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-15T22:42:58.000Z","updated_at":"2024-09-01T23:06:36.000Z","dependencies_parsed_at":"2022-08-22T23:40:32.222Z","dependency_job_id":null,"html_url":"https://github.com/dsccommunity/xDatabase","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsccommunity%2FxDatabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsccommunity%2FxDatabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsccommunity%2FxDatabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsccommunity%2FxDatabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsccommunity","download_url":"https://codeload.github.com/dsccommunity/xDatabase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248120887,"owners_count":21051042,"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":[],"created_at":"2024-11-13T23:38:07.064Z","updated_at":"2025-04-09T22:23:21.113Z","avatar_url":"https://github.com/dsccommunity.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xDatabase\r\n\r\nThe **xDatabase** module contains the **xDatabase**, **xDatabaseLogin**,\r\n**xDatabaseServer**, and  **xDBPackage** resources.\r\n\r\n[![Build Status](https://dev.azure.com/dsccommunity/xDatabase/_apis/build/status/dsccommunity.xDatabase?branchName=master)](https://dev.azure.com/dsccommunity/xDatabase/_build/latest?definitionId=45\u0026branchName=master)\r\n![Azure DevOps coverage (branch)](https://img.shields.io/azure-devops/coverage/dsccommunity/xDatabase/45/master)\r\n[![Azure DevOps tests](https://img.shields.io/azure-devops/tests/dsccommunity/xDatabase/45/master)](https://dsccommunity.visualstudio.com/xDatabase/_test/analytics?definitionId=45\u0026contextType=build)\r\n[![PowerShell Gallery (with prereleases)](https://img.shields.io/powershellgallery/vpre/xDatabase?label=xDatabase%20Preview)](https://www.powershellgallery.com/packages/xDatabase/)\r\n[![PowerShell Gallery](https://img.shields.io/powershellgallery/v/xDatabase?label=xDatabase)](https://www.powershellgallery.com/packages/xDatabase/)\r\n\r\n## Code of Conduct\r\n\r\nThis project has adopted this [Code of Conduct](CODE_OF_CONDUCT.md).\r\n\r\n## Releases\r\n\r\nFor each merge to the branch `master` a preview release will be\r\ndeployed to [PowerShell Gallery](https://www.powershellgallery.com/).\r\nPeriodically a release version tag will be pushed which will deploy a\r\nfull release to [PowerShell Gallery](https://www.powershellgallery.com/).\r\n\r\n## Contributing\r\n\r\nPlease check out common DSC Community [contributing guidelines](https://dsccommunity.org/guidelines/contributing).\r\n\r\n## Change log\r\n\r\nA full list of changes in each version can be found in the [change log](CHANGELOG.md).\r\n\r\n## Documentation\r\n\r\nPlease se the section [Resources](#resources).\r\n\r\n### Examples\r\n\r\nYou can review the [Examples](/source/Examples) directory in the repository\r\nfor some general use scenarios for all of the resources that are in the module.\r\n\r\n## Resources\r\n\r\nFor information on Data-Tier Applications please refer to [Understanding Data-tier Applications](https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ee240739(v=sql.105)).\r\n\r\n- **xDatabase** handles creation/deletion of a database using a dacpac\r\n  or SQL connection string.\r\n- **xDatabaseLogin** _not yet written._.\r\n- **xDatabaseServer** _not yet written._.\r\n- **xDBPackage** allows extraction of a dacpac or import of a bacpac from\r\n  a database.\r\n\r\n### xDatabase\r\n\r\n- **Credentials**: The credential to connect to the SQL server.\r\n- **SqlServer**: The SQL server.\r\n- **SqlServerVersion**: The version of the SQL Server.\r\n  This property can take the following values:\r\n  { 2008-R2 | 2012 | 2014 | 2016 | 2017 | 2019 }\r\n- **BacPacPath**: The path to the .bacpac file to be used for database restore\r\n  If this is used, the DacPacPath (see below) cannot be specified.\r\n- **DacPacPath**: The path to the .dacpac file to be used for database schema deploy.\r\n  If this is used, the BacPacPath (see above) cannot be specified.\r\n- **DacPacApplicationName**: For deploying a database using .dacpac file,\r\n  an application name with which the dacpac is registered.\r\n  This is needed to support database upgrade using .dacpac files.\r\n  This must specified if DacPacPath is provided.\r\n- **DacPacApplicationVersion**: This is an optional parameter needed for\r\n  registration for database deployment using .dacpac files for dacpac registration.\r\n- **DatabaseName**: The name of the database to be deployed.\r\n\r\n### xDatabaseLogin\r\n\r\n_Not yet written_.\r\n\r\n### xDatabaseServer\r\n\r\n_Not yet written_.\r\n\r\n### xDBPackage\r\n\r\n- **DatabaseName**: The name of the database to be deployed.\r\n- **SqlServer**: The SQL server.\r\n- **SqlServerVersion**: The version of the SQL Server.\r\n  This property can take the following values:\r\n  { 2008-R2 | 2012 | 2014 | 2016 | 2017 | 2019 }\r\n- **Path**: The path to the .bacpac or .dacpac file to be used to export\r\n  a database to a bacpac or extract a db to a dacpac respectively.\r\n- **Type**: This property can take the following values for dacpac extraction\r\n  and bacpac export: { DACPAC | BACPAC }\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsccommunity%2Fxdatabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsccommunity%2Fxdatabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsccommunity%2Fxdatabase/lists"}