repositorypackage
0.0.0-20250105132046-b880e87adfe9
Repository: https://github.com/db-curey/proxy.git
Documentation: pkg.go.dev
# README
Curey-Proxy
Curey-Proxy is a proxy server for Curey.
Build
docker compose up -d
Run
connect & get token
http://127.0.0.1:3000/connect?host=db&user=postgres&password=postgres&dbname=postgres
query
curl 'http://127.0.0.1:3000/query' -X POST -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: zh-TW,zh-HK;q=0.8,zh-CN;q=0.6,en-US;q=0.4,en;q=0.2' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Sec-Fetch-Dest: document' -H 'Sec-Fetch-Mode: navigate' -H 'Sec-Fetch-Site: cross-site' -H 'Sec-Fetch-User: ?1' -H 'Priority: u=0, i' -H 'Origin: null' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' --data-raw '{"connection_id":1,"token":"<TOKEN>","sql":"select * from public.test", "args":[]}'