Hack Forums
[C] how to read sqlite database without "sqlite3 amalgamation" (avoiding +1Mb size) ? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] how to read sqlite database without "sqlite3 amalgamation" (avoiding +1Mb size) ? (/showthread.php?tid=6166050)



how to read sqlite database without "sqlite3 amalgamation" (avoiding +1Mb size) ? - 0x0SH3 - Aug 1, 2021

Hello, I want to read a sql database with my c++ code (windows), I don't want to embed sqlite3.c in my project because it adds 1Mb of size to the final executable. Do you know an alternative to sqlite amalgamation? A sort of mini-sqlite3 code or an API to use. (I don't want to link external dll of course)
I need to perform 1 query from google chrome login database.


RE: how to read sqlite database without "sqlite3 amalgamation" (avoiding +1Mb size) ? - NtCreateLife - Aug 2, 2021

Hello, yes it's possible to create a SqlLite 3 handler from this documentation : https://www.sqlite.org/capi3ref.html

You can also take a look at this C++ wrapper : https://github.com/yhirose/cpp-sqlitelib/blob/master/sqlitelib.h