{"id":20459726,"url":"https://github.com/rosbit/db-proxy-driver","last_synced_at":"2025-10-24T05:20:41.621Z","repository":{"id":158030578,"uuid":"631471522","full_name":"rosbit/db-proxy-driver","owner":"rosbit","description":"an implementation of database/sql/driver to access db-proxy","archived":false,"fork":false,"pushed_at":"2025-03-13T07:54:51.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T08:34:20.949Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rosbit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-04-23T05:54:11.000Z","updated_at":"2025-03-13T07:54:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"13dac999-23bd-4d47-804f-1d6d534b579e","html_url":"https://github.com/rosbit/db-proxy-driver","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rosbit/db-proxy-driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Fdb-proxy-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Fdb-proxy-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Fdb-proxy-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Fdb-proxy-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosbit","download_url":"https://codeload.github.com/rosbit/db-proxy-driver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Fdb-proxy-driver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280742553,"owners_count":26382930,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-15T12:17:06.544Z","updated_at":"2025-10-24T05:20:41.583Z","avatar_url":"https://github.com/rosbit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# db-proxy-driver\n\n`db-proxy-driver` is an implementation of database/sql/driver to access [db-proxy](https://github.com/rosbit/db-proxy),\nwhich is a proxy database server to any real database servers.\n\n## Usage\n\n1. register driver\n```go\nimport (\n    _  \"github.com/rosbit/db-proxy-driver\"\n)\n```\n\n2. driver name and DSN\n   - the driver name is `\"dbproxy\"`\n   - the format of DSN depends on the real driver \u0026 DSN. e.go., the origininal DSN for driver `mysql` is\n     named `\"user:password@tcp(host:port)/db?charset=utf8mb4\"`, the new DSN is \"mysql:user:password@tcp(host:port)db?charset=utf8mb4\",\n     which is the concatation of the real driver name, the colon and the orgininal DSN.\n\n3. specify the `db-proxy` server\n    If the `db-proxy` server is listening at host:http-port for HTTP and WebSocket service,\n    host:rpc-port for net/rpc service, environment is used to specfiy where is the `db-proxy` server, and\n    which protocol is used.\n   - HTTP_DB_PROXY_BASEURL=http://host:http-port will make `db-proxy-driver` to access `db-proxy` with HTTP\n   - JSONLRPC_DB_PROXY_HOST=host:rpc-port will make `db-proxy-driver` to access `db-proxy` with net/rpc\n   - JSONLRPC_DB_PROXY_WS_HOST=host:http-port will make `db-proxy-driver` to access `db-proxy` with net/rpc over Websocket\n\n4. using ORM package `xorm`\n   - `xorm` is supported, just add a `go build` tag like the following.\n     `go build -tags xorm`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosbit%2Fdb-proxy-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosbit%2Fdb-proxy-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosbit%2Fdb-proxy-driver/lists"}