{"id":44917802,"url":"https://github.com/qpliu/out-parameter-hack","last_synced_at":"2026-02-18T02:36:35.631Z","repository":{"id":57601240,"uuid":"87348184","full_name":"qpliu/out-parameter-hack","owner":"qpliu","description":"oph is a hack to use out parameters in MySQL stored procedures with Go sql drivers","archived":false,"fork":false,"pushed_at":"2017-04-07T22:06:34.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T05:34:07.540Z","etag":null,"topics":["go","mysql","sql","stored-procedure","stored-procedure-out-parameters"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qpliu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-05T19:24:36.000Z","updated_at":"2017-04-05T23:27:09.000Z","dependencies_parsed_at":"2022-09-26T20:00:33.975Z","dependency_job_id":null,"html_url":"https://github.com/qpliu/out-parameter-hack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qpliu/out-parameter-hack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qpliu%2Fout-parameter-hack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qpliu%2Fout-parameter-hack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qpliu%2Fout-parameter-hack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qpliu%2Fout-parameter-hack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qpliu","download_url":"https://codeload.github.com/qpliu/out-parameter-hack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qpliu%2Fout-parameter-hack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29566410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"online","status_checked_at":"2026-02-18T02:00:09.468Z","response_time":162,"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":["go","mysql","sql","stored-procedure","stored-procedure-out-parameters"],"created_at":"2026-02-18T02:36:35.563Z","updated_at":"2026-02-18T02:36:35.622Z","avatar_url":"https://github.com/qpliu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"oph is a hack to use out parameters in MySQL stored procedures with Go sql\ndrivers.\n\n[![GoDoc](https://godoc.org/github.com/qpliu/out-parameter-hack?status.svg)](https://godoc.org/github.com/qpliu/out-parameter-hack)\n[![Build Status](https://travis-ci.org/qpliu/out-parameter-hack.svg?branch=master)](https://travis-ci.org/qpliu/out-parameter-hack)\n\n# Example\n\n```go\n\tdb, err := sql.Open(\"mymysql\", \"DBNAME/USER/PASSWD\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer db.Close()\n\n\t// CALL EXAMPLE('example',1,NULL,@outString)\n\tvar outString sql.NullString\n\tif err := oph.Call(db, func(resultSetIndex int, rows *sql.Rows) error {\n\t\tfor rows.Next() {\n\t\t\tvar id int64\n\t\t\tvar name sql.NullString\n\t\t\trows.Scan(\u0026id, \u0026name)\n\t\t}\n\t\treturn rows.Err()\n\t}, \"EXAMPLE\", \"example\", 1, nil, \u0026outString); err != nil {\n\t\tpanic(err)\n\t}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqpliu%2Fout-parameter-hack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqpliu%2Fout-parameter-hack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqpliu%2Fout-parameter-hack/lists"}