{"id":13491407,"url":"https://github.com/crossplane-contrib/provider-sql","last_synced_at":"2025-05-16T07:03:54.997Z","repository":{"id":37521318,"uuid":"301295570","full_name":"crossplane-contrib/provider-sql","owner":"crossplane-contrib","description":"An SQL provider for @crossplane","archived":false,"fork":false,"pushed_at":"2025-05-08T21:33:25.000Z","size":671,"stargazers_count":119,"open_issues_count":46,"forks_count":71,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-12T04:52:31.424Z","etag":null,"topics":["crossplane","crossplane-provider","sql"],"latest_commit_sha":null,"homepage":"https://marketplace.upbound.io/providers/crossplane-contrib/provider-sql/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crossplane-contrib.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,"zenodo":null}},"created_at":"2020-10-05T04:45:23.000Z","updated_at":"2025-05-08T19:50:00.000Z","dependencies_parsed_at":"2024-01-16T09:01:37.095Z","dependency_job_id":"fe0f79e8-6761-4e5b-abf1-cf7c4d03faed","html_url":"https://github.com/crossplane-contrib/provider-sql","commit_stats":null,"previous_names":["negz/provider-postgresql"],"tags_count":17,"template":false,"template_full_name":"crossplane/provider-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crossplane-contrib%2Fprovider-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crossplane-contrib%2Fprovider-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crossplane-contrib%2Fprovider-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crossplane-contrib%2Fprovider-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crossplane-contrib","download_url":"https://codeload.github.com/crossplane-contrib/provider-sql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485053,"owners_count":22078767,"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":["crossplane","crossplane-provider","sql"],"created_at":"2024-07-31T19:00:56.782Z","updated_at":"2025-05-16T07:03:54.948Z","avatar_url":"https://github.com/crossplane-contrib.png","language":"Go","readme":"# Crossplane Provider for SQL\n\nA [Crossplane] provider for SQL.\nA [Crossplane] provider for RDBMS schema management/manipulation. Note that\n`provider-sql` orchestrates relational database servers by creating databases,\nusers, etc. It does not create server instances themselves. `provider-sql` can\nbe used in conjunction with other providers (e.g. provider-azure) to define a\ncomposite resource that creates both an RDBMS server and a new database schema.\n\nTo reduce load on the managed databases and increase responsiveness with many\nmanaged resources, this provider reconciles its managed resources every 10 minutes.\n\nIt currently supports **MySQL**, **PostgreSQL** and **MSSQL**.\n\n## Install\n\nInstall the provider by using the following command after changing the image tag to the [latest release](https://marketplace.upbound.io/providers/crossplane-contrib/provider-sql/):\n\n```bash\ncat \u003c\u003c EOF | kubectl apply -f -\napiVersion: pkg.crossplane.io/v1\nkind: Provider\nmetadata:\n  name: provider-sql\nspec:\n  package: xpkg.upbound.io/crossplane-contrib/provider-sql:v0.9.0\nEOF\n```\n\nAlternatively, you can use Crossplane CLI:\n```bash\nup ctp provider install xpkg.upbound.io/crossplane-contrib/provider-sql:v0.9.0\n```\n\nCheck the example:\n\n- [Provider](./examples/provider.yaml)\n- [deploymentRuntimeConfig](./examples/deploymentRuntimeConfig.yaml)\n\n\n## Usage\n\n1. Create a connection secret:\n\n   To create provider-sql managed resources, you will first need a K8s secret\n   with the connection details to an existing SQL server.\n\n   This secret could either be [created automatically] by provisioning an SQL server\n   with a Crossplane provider (e.g. a [CloudSQLInstance] with provider-gcp) or you can\n   create for an existing server as follows:\n\n   ```\n   kubectl create secret generic db-conn \\\n     --from-literal=username=admin \\\n     --from-literal=password='t0ps3cr3t' \\\n     --from-literal=endpoint=my.sql-server.com \\\n     --from-literal=port=3306\n   ```\n\n2. Create managed resources for your SQL server flavor:\n\n   - **MySQL**: `Database`, `Grant`, `User` (See [the examples](examples/mysql))\n   - **PostgreSQL**: `Database`, `Grant`, `Extension`, `Role` (See [the examples](examples/postgresql))\n   - **MSSQL**: `Database`, `Grant`, `User` (See [the examples](examples/mssql))\n\n[crossplane]: https://crossplane.io\n[cloudsqlinstance]: https://doc.crds.dev/github.com/crossplane/provider-gcp/database.gcp.crossplane.io/CloudSQLInstance/v1beta1@v0.18.0\n[created automatically]: https://crossplane.io/docs/v1.5/concepts/managed-resources.html#connection-details\n\n## Contributing\n\n1. Fork the project and clone locally.\n2. Create a branch with the changes.\n3. Install go version 1.18.\n4. Run `make` to initialize the \"build\". Make submodules used for CI/CD.\n5. Run `make reviewable` to run code generation, linters, and tests.\n6. Commit, push, and PR.\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrossplane-contrib%2Fprovider-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrossplane-contrib%2Fprovider-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrossplane-contrib%2Fprovider-sql/lists"}