{"id":15066753,"url":"https://github.com/poissonconsulting/dbflobr","last_synced_at":"2025-10-09T13:15:27.210Z","repository":{"id":46163438,"uuid":"149820417","full_name":"poissonconsulting/dbflobr","owner":"poissonconsulting","description":"An R package to read and write files to SQLite databases as BLOBs","archived":false,"fork":false,"pushed_at":"2025-01-14T21:12:00.000Z","size":2238,"stargazers_count":5,"open_issues_count":5,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-10T14:13:53.695Z","etag":null,"topics":["blob","cran","databases","flob","sqlite"],"latest_commit_sha":null,"homepage":"https://poissonconsulting.github.io/dbflobr/.","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/poissonconsulting.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-21T21:31:47.000Z","updated_at":"2025-03-22T10:54:36.000Z","dependencies_parsed_at":"2024-09-29T11:23:53.198Z","dependency_job_id":"6bb29df5-5d9f-45eb-a0d1-6a28dd60679d","html_url":"https://github.com/poissonconsulting/dbflobr","commit_stats":{"total_commits":190,"total_committers":6,"mean_commits":"31.666666666666668","dds":0.5947368421052632,"last_synced_commit":"1c078fa39a575b03621302ee46e460b55e2d4cd5"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/poissonconsulting/dbflobr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poissonconsulting%2Fdbflobr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poissonconsulting%2Fdbflobr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poissonconsulting%2Fdbflobr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poissonconsulting%2Fdbflobr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poissonconsulting","download_url":"https://codeload.github.com/poissonconsulting/dbflobr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poissonconsulting%2Fdbflobr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001539,"owners_count":26083102,"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-09T02:00:07.460Z","response_time":59,"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":["blob","cran","databases","flob","sqlite"],"created_at":"2024-09-25T01:11:36.119Z","updated_at":"2025-10-09T13:15:27.161Z","avatar_url":"https://github.com/poissonconsulting.png","language":"R","funding_links":[],"categories":[],"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 setup, 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# dbflobr \u003cimg src=\"man/figures/logo.png\" align=\"right\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n[![R-CMD-check](https://github.com/poissonconsulting/dbflobr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/poissonconsulting/dbflobr/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/poissonconsulting/dbflobr/graph/badge.svg)](https://app.codecov.io/gh/poissonconsulting/dbflobr)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![CRAN status](https://www.r-pkg.org/badges/version/dbflobr)](https://cran.r-project.org/package=dbflobr)\n![CRAN downloads](https://cranlogs.r-pkg.org/badges/dbflobr)\n\u003c!-- badges: end --\u003e\n\n`dbflobr` reads and writes files to SQLite databases as [flobs](https://github.com/poissonconsulting/flobr).\nA flob is a [blob](https://github.com/tidyverse/blob) that preserves the file extension.\n\n## Installation\n\nTo install the latest release from [CRAN](https://cran.r-project.org)\n```r\ninstall.packages(\"dbflobr\")\n```\n\nTo install the developmental version from [GitHub](https://github.com/poissonconsulting/dbflobr)\n```r\n# install.packages(\"remotes\")\nremotes::install_github(\"poissonconsulting/dbflobr\")\n```\n\n## Demonstration\n\n```{r}\nlibrary(dbflobr)\n\n# convert a file to flob using flobr\nflob \u003c- flobr::flob(system.file(\"extdata\", \"flobr.pdf\", package = \"flobr\"))\nstr(flob)\n\n# create a SQLite database connection\nconn \u003c- DBI::dbConnect(RSQLite::SQLite(), \":memory:\")\n\n# create a table 'Table1' of data\nDBI::dbWriteTable(conn, \"Table1\", data.frame(IntColumn = c(1L, 2L)))\n\nDBI::dbReadTable(conn, \"Table1\")\n\n# specify which row to add the flob to by providing a key\nkey \u003c- data.frame(IntColumn = 2L)\n\n# write the flob to the database in column 'BlobColumn'\nwrite_flob(flob, \"BlobColumn\", \"Table1\", key, conn, exists = FALSE)\n\nDBI::dbReadTable(conn, \"Table1\")\n\n# read the flob\nflob2 \u003c- read_flob(\"BlobColumn\", \"Table1\", key, conn)\nstr(flob2)\n\n# delete the flob\ndelete_flob(\"BlobColumn\", \"Table1\", key, conn)\n\nDBI::dbReadTable(conn, \"Table1\")\n\n# close the connection\nDBI::dbDisconnect(conn)\n```\n\n## Inspiration\n\n- [blob](https://github.com/tidyverse/blob)\n- [flobr](https://github.com/poissonconsulting/flobr)\n\n## Contribution\n\nPlease report any [issues](https://github.com/poissonconsulting/dbflobr/issues).\n\n[Pull requests](https://github.com/poissonconsulting/dbflobr/pulls) are always welcome.\n\n## Code of Conduct\n\nPlease note that the dbflobr project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). \nBy contributing to this project, you agree to abide by its terms\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoissonconsulting%2Fdbflobr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoissonconsulting%2Fdbflobr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoissonconsulting%2Fdbflobr/lists"}