{"id":19683028,"url":"https://github.com/azadkuh/sqlite-amalgamation","last_synced_at":"2025-06-21T20:05:23.339Z","repository":{"id":29928010,"uuid":"33474123","full_name":"azadkuh/sqlite-amalgamation","owner":"azadkuh","description":"The SQLite amalgamation mirror with cmake ","archived":false,"fork":false,"pushed_at":"2023-01-08T14:40:21.000Z","size":16352,"stargazers_count":97,"open_issues_count":7,"forks_count":66,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-29T05:35:13.376Z","etag":null,"topics":["cmake","sqlite","sqlite-amalgamation"],"latest_commit_sha":null,"homepage":"http://www.sqlite.org/amalgamation.html","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azadkuh.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":"2015-04-06T08:58:29.000Z","updated_at":"2025-04-15T01:53:54.000Z","dependencies_parsed_at":"2023-01-14T16:01:08.456Z","dependency_job_id":null,"html_url":"https://github.com/azadkuh/sqlite-amalgamation","commit_stats":null,"previous_names":[],"tags_count":68,"template":false,"template_full_name":null,"purl":"pkg:github/azadkuh/sqlite-amalgamation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azadkuh%2Fsqlite-amalgamation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azadkuh%2Fsqlite-amalgamation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azadkuh%2Fsqlite-amalgamation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azadkuh%2Fsqlite-amalgamation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azadkuh","download_url":"https://codeload.github.com/azadkuh/sqlite-amalgamation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azadkuh%2Fsqlite-amalgamation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261186769,"owners_count":23121943,"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":["cmake","sqlite","sqlite-amalgamation"],"created_at":"2024-11-11T18:13:31.743Z","updated_at":"2025-06-21T20:05:18.320Z","avatar_url":"https://github.com/azadkuh.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqlite-amalgamation\n- [Release History](https://www.sqlite.org/changes.html)\n- [Chronology](https://www.sqlite.org/chronology.html)\n\nThis repository mirrors the [SQLite](http://www.sqlite.org/download.html)\namalgamation, which is the recommended method of building SQLite into larger\nprojects.\nIt also supports `cmake` for building, installing and exporting.\n\nSQLite includes more than 100 files in `*.c` / `*.h`, but\n\u003e The [amalgamation](http://www.sqlite.org/amalgamation.html) contains\n\u003e everything you need to integrate SQLite into a larger project. Just copy the\n\u003e amalgamation into your source directory and compile it along with the other C\n\u003e code files in your project.\n\u003e ([A more detailed discussion](http://www.sqlite.org/howtocompile.html) of the\n\u003e compilation process is available.) You may also want to make use of\n\u003e the \"sqlite3.h\" header file that defines the programming API for SQLite. The\n\u003e sqlite3.h header file is available separately. The sqlite3.h file is also\n\u003e contained within the amalgamation, in the first few thousand lines. So if you\n\u003e have a copy of sqlite3.c but cannot seem to locate sqlite3.h, you can always\n\u003e regenerate the sqlite3.h by copying and pasting from the amalgamation.\n\n![SQLite3](http://www.sqlite.org/images/sqlite370_banner.gif)\n\n\n## build / install\nA static lib (`libsqlite3`) and the sqlite3 shell will be generated by the build\nsystem.\n\n```bash\n$\u003e mkdir .build\n$\u003e cd .build\n$\u003e cmake /path/to/this/repo  # or cmake .. -G Ninja\n$\u003e ccmake .                  # for build options or cmake-gui .\n$\u003e make -j 2                 # or ninja\n\n$\u003e make install\n```\n\n## usage\nto integrate this library into your project simply add these lines to your project\n`cmake`:\n```cmake\nfind_package(SQLite3 REQUIRED CONFIG)\ntarget_link_libraries(${PROJECT_NAME} SQLite::SQLite3)\n```\n\nthe include directory and link library will be automatically added to your target.\nIf you need to switch your project to use \"standard\" SQLite remove CONFIG option\nin `find_package` function call.\n\n## SQLite3 build options\n`SQLite3` comes with plenty of\n[compile options](https://www.sqlite.org/compile.html)\n\nfollowing cmake build options control some of those compile options:\n\n| options                         | default |\n| :--                             | :--     |\n| `SQLITE_ENABLE_COLUMN_METADATA` | off     |\n| `SQLITE_ENABLE_DBSTAT_VTAB`     | off     |\n| `SQLITE_ENABLE_FTS3`            | off     |\n| `SQLITE_ENABLE_FTS4`            | off     |\n| `SQLITE_ENABLE_FTS5`            | off     |\n| `SQLITE_ENABLE_GEOPOLY`         | off     |\n| `SQLITE_ENABLE_ICU`             | off     |\n| `SQLITE_ENABLE_MATH_FUNCTIONS`  | on      |\n| `SQLITE_ENABLE_RBU`             | off     |\n| `SQLITE_ENABLE_RTREE`           | off     |\n| `SQLITE_ENABLE_STAT4`           | off     |\n| `SQLITE_OMIT_DECLTYPE`          | on      |\n| `SQLITE_OMIT_JSON`              | off     |\n| `SQLITE_USE_URI`                | off     |\n\n\nthese **recommended** compile options are also passed to the compiler by\n`SQLITE_RECOMMENDED_OPTIONS` (on by default):\n\n| options                            |\n| :--                                |\n| SQLITE_DEFAULT_MEMSTATUS       = 0 |\n| SQLITE_DEFAULT_WAL_SYNCHRONOUS = 1 |\n| SQLITE_DQS                     = 0 |\n| SQLITE_LIKE_DOESNT_MATCH_BLOBS     |\n| SQLITE_MAX_EXPR_DEPTH          = 0 |\n| SQLITE_OMIT_DECLTYPE               |\n| SQLITE_OMIT_DEPRECATED             |\n| SQLITE_OMIT_PROGRESS_CALLBACK      |\n| SQLITE_OMIT_SHARED_CACHE           |\n| SQLITE_USE_ALLOCA                  |\n\nall compile-time options will go into `sqlite3_config.h`, you may\nuse this file to check these options when building your application.\n\nthe SQLite3 shell (executable) is disabled by default, to build it just\nactivate the `BUILD_SHELL` option.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazadkuh%2Fsqlite-amalgamation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazadkuh%2Fsqlite-amalgamation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazadkuh%2Fsqlite-amalgamation/lists"}