{"id":15286483,"url":"https://github.com/scottlepp/go-duck","last_synced_at":"2026-03-09T13:37:48.502Z","repository":{"id":223904812,"uuid":"760899380","full_name":"scottlepp/go-duck","owner":"scottlepp","description":"A Golang DuckDB library that doesn't require CGO","archived":false,"fork":false,"pushed_at":"2025-01-24T00:01:58.000Z","size":159,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-07T03:47:09.576Z","etag":null,"topics":["analytics","dataframe","dataframes","duckdb","golang","grafana","sql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottlepp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-20T21:36:55.000Z","updated_at":"2025-02-19T16:21:18.000Z","dependencies_parsed_at":"2024-02-26T16:28:07.445Z","dependency_job_id":"1c5032ee-3806-4fc7-a78a-a725604e7ea6","html_url":"https://github.com/scottlepp/go-duck","commit_stats":null,"previous_names":["scottlepp/go-duck"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/scottlepp/go-duck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottlepp%2Fgo-duck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottlepp%2Fgo-duck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottlepp%2Fgo-duck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottlepp%2Fgo-duck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottlepp","download_url":"https://codeload.github.com/scottlepp/go-duck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottlepp%2Fgo-duck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30297217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["analytics","dataframe","dataframes","duckdb","golang","grafana","sql"],"created_at":"2024-09-30T15:15:09.124Z","updated_at":"2026-03-09T13:37:48.469Z","avatar_url":"https://github.com/scottlepp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/scottlepp/go-duck/assets/6108819/78f3fe95-227a-4b7f-99d5-81d979e5fc2e)\n\n\n# Go wrapper for [DuckDB CLI](https://duckdb.org/docs/api/cli/overview)\n* Doesn't require CGO.\n* Requires duckdb cli to be in the path.\n\n## In Memory Database\n```\n\tdb := NewInMemoryDB()\n\n\tcommands := []string{\n\t\t\"CREATE TABLE t1 (i INTEGER, j INTEGER);\",\n\t\t\"INSERT INTO t1 VALUES (1, 5);\",\n\t\t\"SELECT * from t1;\",\n\t}\n\tres, err := db.RunCommands(commands)\n```\n## File based Database\n```\n\tdb := NewDuckDB(\"foo\")\n\n\tcommands := []string{\n\t\t\"CREATE TABLE t1 (i INTEGER, j INTEGER);\",\n\t\t\"INSERT INTO t1 VALUES (1, 5);\",\n\t}\n\t_, err := db.RunCommands(commands)\n\tres, err := db.Query(\"SELECT * from t1;\")\n```\n\n## Dataframes\n* Allows querying dataframes using SQL, with all the aggregate/window/analytics functions from DuckDB.\n\n## Query Dataframes\n```\n\tdb := NewInMemoryDB()\n\n\tvar values = []string{\"test\"}\n\tframe := data.NewFrame(\"foo\", data.NewField(\"value\", nil, values))\n\tframe.RefID = \"foo\"\n\tframes := []*data.Frame{frame}\n\n\tres, err := db.QueryFrames(\"foo\", \"select * from foo\", frames)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottlepp%2Fgo-duck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottlepp%2Fgo-duck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottlepp%2Fgo-duck/lists"}