{"id":19436331,"url":"https://github.com/beached/sqlite_helper","last_synced_at":"2025-10-13T04:41:29.959Z","repository":{"id":149955386,"uuid":"61664372","full_name":"beached/sqlite_helper","owner":"beached","description":"YASC - Yet Another Sqlite Class","archived":false,"fork":false,"pushed_at":"2022-04-11T05:18:31.000Z","size":1934,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-07T21:12:29.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/beached.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}},"created_at":"2016-06-21T20:19:05.000Z","updated_at":"2022-04-09T06:20:14.000Z","dependencies_parsed_at":"2023-05-05T06:19:37.804Z","dependency_job_id":null,"html_url":"https://github.com/beached/sqlite_helper","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/beached%2Fsqlite_helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Fsqlite_helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Fsqlite_helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Fsqlite_helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beached","download_url":"https://codeload.github.com/beached/sqlite_helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240619430,"owners_count":19830204,"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-11-10T15:10:35.823Z","updated_at":"2025-10-13T04:41:24.928Z","avatar_url":"https://github.com/beached.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sqlite Helper\n\nSqlite Helper is a small library to aid in using sqlite3 from C++. It provides RAII wrappers, prepared statements, and a\nquery iterator to iterate over each row in a result.\n\n## Installation\n\nCurrently it is a FetchContent'able cmake library. But can be installed too.\n\n```cmake\nFetchContent_Declare(\n        daw_sqlite_helper\n        GIT_REPOSITORY https://github.com/beached/sqlite_helper\n)\n# ....\ntarget_link_libraries(MyTarget daw::daw-sqlite-helper)\n```\n\n## Usage\n\n#### Opening a database\n\n```c++\nauto db = daw::sqlite::database( \"file.sqlite\" );\n```\n\n#### Querying a database\n\n```c++\nauto it = db.exec( \n      \"SELECT colA, colB FROM tbl WHERE name=?\",\n      \"foo\" \n    );\n```\n\n#### Using query results\n\n```c++\nstd::cout \u003c\u003c \"Found \" \u003c\u003c it.count( ) \u003c\u003c \" rows\\n\";\nfor( auto const \u0026 row: it ) {\n  for( auto const \u0026 col: row ) {  \n    std::cout \u003c\u003c col.name \u003c\u003c \": \" \u003c\u003c col.value \u003c\u003c '\\n';    \n  }  \n  std::cout \u003c\u003c '\\n';\n}\n```\n\nThe returned iterator can be reset to the beginning of the row set by calling `reset( )`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeached%2Fsqlite_helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeached%2Fsqlite_helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeached%2Fsqlite_helper/lists"}