https://github.com/keyvaluesoftwaresystems/gsql-proxy
CLI tool to connect Google CloudSQL instances
https://github.com/keyvaluesoftwaresystems/gsql-proxy
Last synced: 6 months ago
JSON representation
CLI tool to connect Google CloudSQL instances
- Host: GitHub
- URL: https://github.com/keyvaluesoftwaresystems/gsql-proxy
- Owner: KeyValueSoftwareSystems
- Created: 2022-12-05T10:05:06.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T01:16:20.000Z (almost 3 years ago)
- Last Synced: 2024-12-31T02:11:39.923Z (about 1 year ago)
- Language: Go
- Size: 585 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install gsql-proxy
## MacOS
```bash
brew install KeyValueSoftwareSystems/tools/gsql-proxy
```
## Ubuntu
```bash
curl -s https://raw.githubusercontent.com/KeyValueSoftwareSystems/gsql-proxy/master/scripts/install.sh | bash
```
# Usage
**To connect a database instance**
```bash
gsql-proxy connect --port=
```
By default `port=5432` and is optional
**To disconnect instance**
```bash
gsql-proxy disconnect
```
**For all commands**
```bash
gsql-proxy --help
```
# Prerequisites:
- [cloud_sql_proxy](https://keyvalue.atlassian.net/wiki/spaces/TECH/pages/263782429/Cloud+SQL+connect+with+SQL+Proxy)
- [gcloud](https://cloud.google.com/sdk/docs/install)
### Install prerequisites in single click (WIP)
```bash
curl -s https://raw.githubusercontent.com/KeyValueSoftwareSystems/gsql-proxy/master/scripts/install_prerequisites.sh | bash
```