{"id":14066810,"url":"https://github.com/nfultz/askgitdbi","last_synced_at":"2026-05-15T15:32:31.581Z","repository":{"id":72193891,"uuid":"392886231","full_name":"nfultz/askgitdbi","owner":"nfultz","description":"a DBI wrapper around askgit","archived":false,"fork":false,"pushed_at":"2021-08-05T03:09:06.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-09T09:57:27.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","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/nfultz.png","metadata":{"files":{"readme":"README.Rmd","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":"2021-08-05T03:04:22.000Z","updated_at":"2022-05-09T21:21:55.000Z","dependencies_parsed_at":"2023-05-31T07:30:58.816Z","dependency_job_id":null,"html_url":"https://github.com/nfultz/askgitdbi","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/nfultz%2Faskgitdbi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfultz%2Faskgitdbi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfultz%2Faskgitdbi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfultz%2Faskgitdbi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfultz","download_url":"https://codeload.github.com/nfultz/askgitdbi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240898276,"owners_count":19875151,"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":[],"created_at":"2024-08-13T07:05:16.330Z","updated_at":"2026-05-15T15:32:26.548Z","avatar_url":"https://github.com/nfultz.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# askgit\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\nThis is a very quick DBI wrapper around the most excellent [askgit](https://github.com/askgitdev/askgit)\nprogram, which has an undocumented SQLite extension mode.\n\n**WIP / DO NOT USE FOR CRITICAL JOBS**\n\n\n## Installation\n\nIdeally one could install the development version of the askgit DBI wrapper via:\n\n``` r\nremotes::install_github(\"nfultz/askgitdbi\")\n```\n\nHowever, I have no idea if it would work with submodules. Also you need the\nappropriate golang tools as well as libgit2.\n\n\n## Example\n\nThis is a basic example which shows you how to query a repo:\n\n```{r example}\nlibrary(DBI)\n\ncon \u003c- dbConnect(askgit::AskGit(), \":memory:\")\n\n\ndbGetQuery(con, \"select hash, author_name from commits order by committer_when desc limit 3\")\n\n```\n\nThe below is a less contrived example:\n\n\n```{r}\nrequire(ggplot2)\n\n\"select author_name, count(hash) as n \nfrom commits('../DeclareDesign') \nwhere message not like 'Merge%' \ngroup by 1 \norder by 2 desc \nlimit 4\" |\u003e\ndbGetQuery(conn=con) |\u003e\nggplot() + aes(x=author_name, y=n) + geom_col()\n\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfultz%2Faskgitdbi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfultz%2Faskgitdbi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfultz%2Faskgitdbi/lists"}