{"id":15564948,"url":"https://github.com/proullon/druid","last_synced_at":"2025-04-12T20:34:49.893Z","repository":{"id":57706141,"uuid":"491183002","full_name":"proullon/druid","owner":"proullon","description":"Go database/sql driver for Apache druid","archived":false,"fork":false,"pushed_at":"2023-02-21T09:25:38.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T14:51:13.267Z","etag":null,"topics":["apache-druid","database","driver","druid","go","golang","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/proullon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-05-11T16:06:42.000Z","updated_at":"2023-02-19T15:30:35.000Z","dependencies_parsed_at":"2024-06-20T00:21:56.222Z","dependency_job_id":null,"html_url":"https://github.com/proullon/druid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proullon%2Fdruid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proullon%2Fdruid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proullon%2Fdruid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proullon%2Fdruid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/proullon","download_url":"https://codeload.github.com/proullon/druid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631141,"owners_count":21136548,"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","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":["apache-druid","database","driver","druid","go","golang","sql"],"created_at":"2024-10-02T16:46:23.760Z","updated_at":"2025-04-12T20:34:49.872Z","avatar_url":"https://github.com/proullon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# druid\n\n## Driver usage\n\nExample:\n```go\nimport (\n\t\"database/sql\"\n\t\"time\"\n\n\t_ \"github.com/proullon/druid/driver\"\n)\n\t\nfunc main() {\n  db, err := sql.Open(\"druid\", \"https://druid.domain.com\")\n\tif err != nil {\n\t\tpanic(\"cannot open connection : %s\\n\", err)\n\t}\n\n\trows, err := db.Query(`SELECT __time, added, channel, user FROM  \"wikipedia\" LIMIT 10`)\n\tif err != nil {\n\t\tpanic(\"query: %s\", err)\n\t}\n\tdefer rows.Close()\n\n\tvar __time time.Time\n\tvar added int\n\tvar channel, user string\n\tfor rows.Next() {\n\t\terr = rows.Scan(\u0026__time, \u0026added, \u0026channel, \u0026user)\n\t\tif err != nil {\n\t\t\tpanic(\"scan: %s\", err)\n\t\t}\n\t}\n}\n```\n\n## CLI testing\n\nRunning test.sql against your server after [Quickstart](https://druid.apache.org/docs/latest/tutorials/index.html):\n```sh\nDRUID_DSN=\"http://druid.company.com/\" druidql \u003c test.sql\n```\n\nwill grant you this output:\n```\ndruidsql\u003e\n__time  |  added   |  channel  |  cityName  |  comment  |  countryIsoCode  |  countryName  |  deleted  |  delta   |  isAnonymous  |  isMinor  |  isNew   |  isRobot  |  isUnpatrolled  |  metroCode  |  namespace  |  page    |  regionIsoCode  |  regionName  |  user\n------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n2015-09-12T00:46:58.771Z  |  36      |  #en.wikipedia  |          |  added project  |          |          |  0       |  36      |  false   |  false   |  false   |  false   |  false   |          |  Talk    |  Talk:Oswald Tilghman  |          |          |  GELongstreet\n2015-09-12T00:47:00.496Z  |  17      |  #ca.wikipedia  |          |  Robot inserta {{Commonscat}} que enllaça amb [[commons:category:Rallicula]]  |          |          |  0       |  17      |  false   |  true    |  false   |  true    |  false   |          |  Main    |  Rallicula  |          |          |  PereBot\n2015-09-12T00:47:05.474Z  |  0       |  #en.wikipedia  |  Auburn  |  /* Status of peremptory norms under international law */ fixed spelling of 'Wimbledon'  |  AU      |  Australia  |  0       |  0       |  true    |  false   |  false   |  false   |  false   |          |  Main    |  Peremptory norm  |  NSW     |  New South Wales  |  60.225.66.142\n2015-09-12T00:47:08.77Z  |  18      |  #vi.wikipedia  |          |  fix Lỗi CS1: ngày tháng  |          |          |  0       |  18      |  false   |  true    |  false   |  true    |  false   |          |  Main    |  Apamea abruzzorum  |          |          |  Cheers!-bot\n2015-09-12T00:47:11.862Z  |  18      |  #vi.wikipedia  |          |  clean up using [[Project:AWB|AWB]]  |          |          |  0       |  18      |  false   |  false   |  false   |  true    |  false   |          |  Main    |  Atractus flammigerus  |          |          |  ThitxongkhoiAWB\n2015-09-12T00:47:13.987Z  |  18      |  #vi.wikipedia  |          |  clean up using [[Project:AWB|AWB]]  |          |          |  0       |  18      |  false   |  false   |  false   |  true    |  false   |          |  Main    |  Agama mossambica  |          |          |  ThitxongkhoiAWB\n2015-09-12T00:47:17.009Z  |  0       |  #ca.wikipedia  |          |  /* Imperi Austrohongarès */  |          |          |  20      |  -20     |  false   |  false   |  false   |  false   |  false   |          |  Main    |  Campanya dels Balcans (1914-1918)  |          |          |  Jaumellecha\n2015-09-12T00:47:19.591Z  |  345     |  #en.wikipedia  |          |  adding comment on notability and possible COI  |          |          |  0       |  345     |  false   |  false   |  true    |  false   |  true    |          |  Talk    |  Talk:Dani Ploeger  |          |          |  New Media Theorist\n2015-09-12T00:47:21.578Z  |  121     |  #en.wikipedia  |          |  Copying assessment table to wiki  |          |          |  0       |  121     |  false   |  false   |  false   |  true    |  false   |          |  User    |  User:WP 1.0 bot/Tables/Project/Pubs  |          |          |  WP 1.0 bot\n2015-09-12T00:47:25.821Z  |  18      |  #vi.wikipedia  |          |  clean up using [[Project:AWB|AWB]]  |          |          |  0       |  18      |  false   |  false   |  false   |  true    |  false   |          |  Main    |  Agama persimilis  |          |          |  ThitxongkhoiAWB\ndruidsql\u003e\nHourTime  |  LinesDeleted\n-------------------------\n2015-09-12T00:00:00Z  |  1761\n2015-09-12T01:00:00Z  |  16208\n2015-09-12T02:00:00Z  |  14543\n2015-09-12T03:00:00Z  |  13101\n2015-09-12T04:00:00Z  |  12040\n2015-09-12T05:00:00Z  |  6399\n2015-09-12T06:00:00Z  |  9036\n2015-09-12T07:00:00Z  |  11409\n2015-09-12T08:00:00Z  |  11616\n2015-09-12T09:00:00Z  |  17509\ndruidsql\u003e exit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproullon%2Fdruid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproullon%2Fdruid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproullon%2Fdruid/lists"}