{"id":28266866,"url":"https://github.com/r-dbi/rsqlite","last_synced_at":"2025-12-15T20:54:42.267Z","repository":{"id":695024,"uuid":"10302694","full_name":"r-dbi/RSQLite","owner":"r-dbi","description":"R interface for SQLite","archived":false,"fork":false,"pushed_at":"2025-06-10T02:25:57.000Z","size":61194,"stargazers_count":334,"open_issues_count":28,"forks_count":79,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-06-15T22:14:44.756Z","etag":null,"topics":["database","r","sqlite3"],"latest_commit_sha":null,"homepage":"https://rsqlite.r-dbi.org","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-dbi.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-05-26T19:47:56.000Z","updated_at":"2025-06-12T14:50:43.000Z","dependencies_parsed_at":"2023-10-12T15:12:52.213Z","dependency_job_id":"fe614274-4edd-49fa-b250-c7a0948fdd2f","html_url":"https://github.com/r-dbi/RSQLite","commit_stats":{"total_commits":2624,"total_committers":49,"mean_commits":53.55102040816327,"dds":"0.47408536585365857","last_synced_commit":"40b2d4771d6b34cc48f43332d17c15b2562f3f90"},"previous_names":["rstats-db/rsqlite"],"tags_count":229,"template":false,"template_full_name":null,"purl":"pkg:github/r-dbi/RSQLite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-dbi%2FRSQLite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-dbi%2FRSQLite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-dbi%2FRSQLite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-dbi%2FRSQLite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-dbi","download_url":"https://codeload.github.com/r-dbi/RSQLite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-dbi%2FRSQLite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260663044,"owners_count":23044040,"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":["database","r","sqlite3"],"created_at":"2025-05-20T15:04:39.784Z","updated_at":"2025-12-15T20:54:42.259Z","avatar_url":"https://github.com/r-dbi.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: downlit::readme_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\npkgload::load_all()\n```\n\n\n# RSQLite\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)\n[![rcc](https://github.com/r-dbi/RSQLite/workflows/rcc/badge.svg)](https://github.com/r-dbi/RSQLite/actions)\n[![Coverage Status](https://codecov.io/gh/r-dbi/RSQLite/branch/main/graph/badge.svg)](https://app.codecov.io/github/r-dbi/RSQLite?branch=main)\n[![CRAN status](https://www.r-pkg.org/badges/version/RSQLite)](https://cran.r-project.org/package=RSQLite)\n[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/3234/badge)](https://bestpractices.coreinfrastructure.org/projects/3234)\n\u003c!-- badges: end --\u003e\n\nEmbeds the SQLite database engine in R, providing a DBI-compliant interface. [SQLite](https://www.sqlite.org/index.html) is a public-domain, single-user, very light-weight database engine that implements a decent subset of the SQL 92 standard, including the core table creation, updating, insertion, and selection operations, plus transaction management.\n\nYou can install the latest released version from CRAN with:\n\n```R\ninstall.packages(\"RSQLite\")\n```\n\nOr install the latest development version from GitHub with:\n\n```R\n# install.packages(\"devtools\")\ndevtools::install_github(\"r-dbi/RSQLite\")\n```\n\nDiscussions associated with DBI and related database packages take place on [R-SIG-DB](https://stat.ethz.ch/mailman/listinfo/r-sig-db).\nThe website [Databases using R](https://db.rstudio.com/) describes the tools and best practices in this ecosystem.\n\n## Basic usage\n\n```{r}\nlibrary(DBI)\n# Create an ephemeral in-memory RSQLite database\ncon \u003c- dbConnect(RSQLite::SQLite(), \":memory:\")\n\ndbListTables(con)\ndbWriteTable(con, \"mtcars\", mtcars)\ndbListTables(con)\n\ndbListFields(con, \"mtcars\")\ndbReadTable(con, \"mtcars\")\n\n# You can fetch all results:\nres \u003c- dbSendQuery(con, \"SELECT * FROM mtcars WHERE cyl = 4\")\ndbFetch(res)\ndbClearResult(res)\n\n# Or a chunk at a time\nres \u003c- dbSendQuery(con, \"SELECT * FROM mtcars WHERE cyl = 4\")\nwhile (!dbHasCompleted(res)) {\n  chunk \u003c- dbFetch(res, n = 5)\n  print(nrow(chunk))\n}\n# Clear the result\ndbClearResult(res)\n\n# Disconnect from the database\ndbDisconnect(con)\n```\n\n## Acknowledgements\n\nMany thanks to Doug Bates, Seth Falcon, Detlef Groth, Ronggui Huang, Kurt Hornik, Uwe Ligges, Charles Loboz, Duncan Murdoch, and Brian D. Ripley for comments, suggestions, bug reports, and/or patches.\n\n---\n\nPlease note that the 'RSQLite' project is released with a\n[Contributor Code of Conduct](https://rsqlite.r-dbi.org/code_of_conduct).\nBy contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-dbi%2Frsqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-dbi%2Frsqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-dbi%2Frsqlite/lists"}