G "Visual Studio 16 2019" # for Visual Studio Generate a Visual Studio solution for latest version foundĬmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON Build default configuration (ie 'Debug') Typical generic build for MS Visual Studio under Windows (from build.bat): mkdir buildĬmake. Target_link_libraries(my_target PRIVATE SQLiteCpp)Ī CMake configuration file is also provided for multi-platform support and testing. # You can optionally declare PUBLIC or PRIVATE linkage here, depending on your needs. # For this example, lets say you created an target with add_executable (or add_library) called "my_target" # You can optionally define a minimum version in this call Here's an example of using this in your CMakeLists.txt This file lets you link against the SQLiteCpp library for use in your Cmake project. If you installed this package to your system, a `SQLiteCppConfig.cmake` file will be generated & installed to your system. # Using SQLiteCpp on a system-wide installation If the version is out of date, please () on the vcpkg repository. The SQLiteCpp port in vcpkg is kept up to date by Microsoft team members and community contributors. So you simply have to add_subdirectory(SQLiteCpp) to you main CMakeLists.txtĪnd link to the “SQLiteCpp” wrapper library. The “CMakeLists.txt” file defining the static library is provided in the root directory, ![]() The easiest way to do this is to add the wrapper as a library. In your project code base, and compile/link against the sqlite library. To use this wrapper, you need to add the SQLiteC++ source files from the src/ directory With the SQLITE_ENABLE_COLUMN_METADATA macro defined (see ). Or by adding its source file in your project code base (source code provided in src/sqlite3 for Windows), the SQLite library (3.7.15 minimum from ) either by linking to it dynamically or statically (install the libsqlite3-dev package under Debian/Ubuntu/Mint Linux),.exception support (the class Exception inherits from std::runtime_error).a modern C++11 STL implementation with GCC, Clang, or Visual Studio 2015.Visual Studio Community/Entreprise 2022, 2019, 2017, and 2015 (AppVeyor and Github Actions).AppleClang 8, 9 and 13 (Travis CI and Github Actions).MacOS 10.11 and 11.7 (Travis CI and Github Actions).Windows 10, and Windows Server 2012 R2, Windows Server 2016, Windows Server 2022 (AppVeyor and Github Actions).Ubuntu 14.04, 16.04 and 18.04 (Travis CI and Github Actions).Use branch sqlitecpp-2.x for latest pre-C++11 developments.ĭevelopments and tests are done under the following OSs: It is designed using the Resource Acquisition Is Initialization (RAII) idiomĪnd throwing exceptions in case of SQLite errors (except in destructors,Įach SQLiteC++ object must be constructed with a valid SQLite database connection,Īnd then is always valid until destroyed. to use a permissive MIT license, similar to BSD or Boost, for proprietary/commercial usage.to be well documented with Doxygen tags, and with some good examples.to use API names sticking with those of the SQLite library.to be thread-safe only as much as SQLite “Multi-thread” mode (see below).to keep dependencies to a minimum (C++11 STL and SQLite3).to be elegantly written with good C++11 design, STL, exceptions and RAII idiom.to offer the best of the existing simple C++ SQLite wrappers.It is the most widely deployed SQL database engine in the world.Īll of the code and documentation in SQLite has been dedicated to the public domain by the authors. SQLite is a library that implements a serverless transactional SQL database engine. I would love a mention in your README, a web link to the SQLite repository, and a mention of the author,īut none of those are mandatory. The way you want it to, be it a git submodule, a subdirectory, or a selection of some source files. Or copy at ) Note on redistribution of SQLite source filesĪs stated by the MIT License, you are welcome to reuse, modify, and redistribute the SQLiteCpp source code License:Ĭopyright (c) 2012-2023 Sébastien Rombauts under the MIT License (MIT) (See accompanying file LICENSE.txt With a few intuitive and well documented C++ classes. SQLiteC++ offers an encapsulation around the native C APIs of SQLite, SQLiteC++ (SQLiteCpp) is a lean and easy to use C++ SQLite3 wrapper.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |