{"id":22435405,"url":"https://github.com/kloeckner-i/cloudish-sql","last_synced_at":"2025-03-27T08:23:14.906Z","repository":{"id":48123837,"uuid":"392635495","full_name":"kloeckner-i/cloudish-sql","owner":"kloeckner-i","description":"A local mock for testing applications that use Google Cloud SQL","archived":false,"fork":false,"pushed_at":"2023-03-25T19:48:21.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-01T13:23:08.680Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/kloeckner-i.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}},"created_at":"2021-08-04T09:53:55.000Z","updated_at":"2021-08-05T15:20:28.000Z","dependencies_parsed_at":"2022-08-12T19:01:20.017Z","dependency_job_id":null,"html_url":"https://github.com/kloeckner-i/cloudish-sql","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kloeckner-i%2Fcloudish-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kloeckner-i%2Fcloudish-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kloeckner-i%2Fcloudish-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kloeckner-i%2Fcloudish-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kloeckner-i","download_url":"https://codeload.github.com/kloeckner-i/cloudish-sql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806783,"owners_count":20675373,"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-12-05T23:13:30.876Z","updated_at":"2025-03-27T08:23:14.876Z","avatar_url":"https://github.com/kloeckner-i.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudish-sql\n\nCloudish-sql is a local mock for testing applications that use Google Cloud\nSQL. It partially implements the [Cloud SQL Admin API](https://cloud.google.com/sql/docs/mysql/admin-api/rest) and\nincludes a mTLS proxy suitable for proxying requests to a local database backend.\n\n## Quickstart\n\nCloudish-sql will typically be used in conjunction with a PostgreSQL or MySQL\ncontainer. This is best achieved with a tool such as docker-compose.\n\n```yaml\nversion: \"3.6\"\nservices:\n  postgres:\n    image: postgres:11-alpine\n    environment:\n      POSTGRES_PASSWORD: \"test1234\"\n\n  cloudish-sql:\n    build: .\n    ports:\n      - \"127.0.0.1:3307:3307\"\n      - \"127.0.0.1:8080:8080\"\n    environment:\n      LOG_LEVEL: \"INFO\"\n    command:\n      - --db-address=postgres:5432\n```\n\n`cloudish-sql` will persist database information across requests in a filesystem based store. So between tests you \nwill have to use unique ids or remove and restart the service.\n\n## Development\n\n### Prerequisites\n\n* [Go 1.16+](https://golang.org/dl/)\n* Make\n* [golangci-lint v1.40+](https://golangci-lint.run/usage/install/)\n* Additional Go tools:\n    * [gofumpt](https://github.com/mvdan/gofumpt)\n    * [gofumports](https://github.com/mvdan/gofumpt)\n    * [gci](https://github.com/daixiang0/gci)\n\n### Build\n\nTo build `cloudish-sql`, simply run make without any arguments.\n\nThe resulting binary will be written to: `./target/cloudish-sql`.\n\n```shell script\nmake\n```\n\n### Test\n\nBefore committing any code you should always lint and test your changes.\n\n#### Code Linting\n\n```shell script\nmake lint\n```\n\n#### Running the Tests\n\n```shell script\nmake test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkloeckner-i%2Fcloudish-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkloeckner-i%2Fcloudish-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkloeckner-i%2Fcloudish-sql/lists"}