{"id":20145961,"url":"https://github.com/usagi/libwrp-sqlite3","last_synced_at":"2025-06-14T03:39:16.135Z","repository":{"id":8444250,"uuid":"10036374","full_name":"usagi/libWRP-SQLite3","owner":"usagi","description":"C++ SQLite3 wrapper library","archived":false,"fork":false,"pushed_at":"2016-11-21T08:39:38.000Z","size":279,"stargazers_count":5,"open_issues_count":6,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-13T11:11:23.484Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/usagi.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}},"created_at":"2013-05-13T16:49:11.000Z","updated_at":"2019-01-03T13:41:37.000Z","dependencies_parsed_at":"2022-08-23T16:40:19.068Z","dependency_job_id":null,"html_url":"https://github.com/usagi/libWRP-SQLite3","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/usagi%2FlibWRP-SQLite3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi%2FlibWRP-SQLite3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi%2FlibWRP-SQLite3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi%2FlibWRP-SQLite3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usagi","download_url":"https://codeload.github.com/usagi/libWRP-SQLite3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587845,"owners_count":19986628,"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-13T22:18:53.853Z","updated_at":"2025-03-03T00:14:32.185Z","avatar_url":"https://github.com/usagi.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libWRP-SQLite3\n\nC++ SQLite3 wrapper library\n\n## Features\n\n- simple for use\n    - open with ctor\n    - database and statement close automatically with dtor by RAII\n    - support `execute`\n    - support `prepare`, `bind` and `reset`\n        - `bind` and `reset` are chainable :)\n    - support low-level controls; eg. `step`, `data_element`, `data_row`\n- compile-time optimization friendly\n    - but, not support indeterminately in compile-time\n- header only\n    - :)\n- C++11 standard conformable and seal C API\n    - rewrite to `enum class` from CPP `#define`s\n    - std::tuple for use to data row\n    - C API was sealed into the namespace `WonderRabbitProject::SQLite3::C`\n\n## Library\n\nThe library is in the \"./include\" directory.\n\n### Install\n\nto system: install to /usr/local\n\n    sudo ./install.sh\n\nto the other:\n\n    PREFIX=~/opt ./install.sh\n\n### Usage and Sample\n\n    #include \u003cWonderRabbitProject/SQLite3.hpp\u003e\n\n    using WonderRabbitProject::SQLite3::sqlite3_t;\n    \n    sqlite3_t database;\n    database.execute(\"create table t(a,b,c)\");\n    database.execute(\"insert into t values(123, 4.5e+6, 'Hello')\");\n    database.execute(\"insert into t values(987, 6.5e-4, 'World')\");\n    auto statement = database.prepare(\"select * from t\");\n    auto data = statement.data\u003cint32_t, double, std::string\u003e();\n    for ( const auto \u0026 row : data )\n      std::cout \u003c\u003c std::get\u003c0\u003e(row) \u003c\u003c \"\\n\"\n                \u003c\u003c std::get\u003c1\u003e(row) \u003c\u003c \"\\n\"\n                \u003c\u003c std::get\u003c2\u003e(row) \u003c\u003c endl\n                ;\n\nAnd more examples available in:\n\n1. [example\\_01](example/example_01.cxx) // basic example\n2. [example\\_02](example/example_02.cxx) // blob example\n2. [example\\_03](example/example_03.cxx) // execute\\_data example\n\n## Requirement\n\n* C++11\n* [libqlite3](http://www.sqlite.org/) \u0026gt;= 3.7.14\n\n### Optional\n\n* [google-glog](https://code.google.com/p/google-glog/)\n* [Ninja](http://martine.github.com/ninja/)\n\n## API Reference documentations\n\n- [PDF version](https://github.com/usagi/libWRP-SQLite3/raw/master/documents/latex/refman.pdf)\n- [HTML version](documents/html/index.html)\n\n## License\n\n* [MIT](LICENSE)\n\n## Author\n\n(C)2013 Usagi Ito\u003cusagi@WonderRabbitProject.net\u003e / [Wonder Rabbit Project](http://www.WonderRabbitProject.net/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusagi%2Flibwrp-sqlite3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusagi%2Flibwrp-sqlite3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusagi%2Flibwrp-sqlite3/lists"}