{"id":13732178,"url":"https://github.com/raven-ie/NLDatabase","last_synced_at":"2025-05-08T06:31:33.958Z","repository":{"id":10638285,"uuid":"12864177","full_name":"raven-ie/NLDatabase","owner":"raven-ie","description":"Lightweight C++ wrapper for SQLite","archived":false,"fork":false,"pushed_at":"2013-09-15T19:12:56.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-04T02:10:52.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/raven-ie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-16T10:05:11.000Z","updated_at":"2019-09-20T21:23:42.000Z","dependencies_parsed_at":"2022-09-24T06:23:05.032Z","dependency_job_id":null,"html_url":"https://github.com/raven-ie/NLDatabase","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/raven-ie%2FNLDatabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raven-ie%2FNLDatabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raven-ie%2FNLDatabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raven-ie%2FNLDatabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raven-ie","download_url":"https://codeload.github.com/raven-ie/NLDatabase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224707889,"owners_count":17356432,"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-03T02:01:48.302Z","updated_at":"2024-11-14T23:31:27.942Z","avatar_url":"https://github.com/raven-ie.png","language":null,"funding_links":[],"categories":["Networking"],"sub_categories":[],"readme":"# NLDatabase\n\nLightweight C++ wrapper for SQLite.\n\n## Requirements\n\n - C++11 compiler\n - SQLite 3\n\n## Usage\n\nLet's open a database file and read some rows:\n\n    #include \"NLDatabase.h\"\n\n\n\tusing namespace std;\n\tusing namespace NL::DB;\n\n\n\tint main(int argc, const char * argv[]) {\n\n\t    Database db( \"test.sqlite\" );\n\t    \n\t    auto results = db.query(\"SELECT * FROM test WHERE name \u003c\u003e ?\", \"TOM\" );\n\t    \n\t    for ( auto \u0026 row : results ) {\n\t        cout \u003c\u003c \"column[0]=\" \u003c\u003c row.column_string( 0 ) \u003c\u003c endl;\n\t    }\n\t}\n\n## Installation\n\nIt's a single header, just drop into your project, link sqlite3 and that's it.\n\n## Demo\n\nTo run the simple demo, use the Xcode project or build it on the command line like this:\n\n\tsqlite3 test.sqlite \u003c test.sql\n\tclang -o test -std=c++11 -lsqlite3 -lstdc++ main.cpp\n\t./test\n\n\n## Known problems\n\n - There is no error checking. None. Your queries must be perfect. Also, patches are welcome.\n - If you look at the way the results are retrieved, you will realize that you can only iterate through them ONCE. I didn't see an obvious way to express this in code and make it impossible syntactically, so it's simply something you need to keep in mind.\n\n## See also\n\nGoes well with [NLTemplate](https://github.com/catnapgames/NLTemplate) and possibly [Mongoose](https://github.com/cesanta/mongoose).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraven-ie%2FNLDatabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraven-ie%2FNLDatabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraven-ie%2FNLDatabase/lists"}