603 Commits

Author SHA1 Message Date
r4d2
905c3d7bb5 std::string API (implementing issue #13 2014-01-12 00:15:10 +01:00
Sébastien Rombauts
d7f349ba62 Merge pull request #9 from niXman/master
QtCreator project files added
2013-11-29 23:08:49 -08:00
niXman
b5a2e183d1 example1 QtCreator project added 2013-11-30 04:25:18 +04:00
niXman
17edbe921c QtCreator project files added 2013-11-30 04:17:16 +04:00
Sébastien Rombauts
cc17771d2a Added a new Column::getName() method inspired by NachoSoto
- Close #8 pull request

 to pull-request #8
0.6.0
2013-11-22 13:35:35 +01:00
Sébastien Rombauts
05a37fd64c Renamed Column::getName() to Column::getOriginName() 2013-11-22 06:58:07 +01:00
Sébastien Rombauts
ef6fac6b71 Complete the documentation of the assertion handler for issue #7 2013-11-01 23:48:46 +01:00
Sébastien Rombauts
c84e5122d3 Renamed Assert.h to Assertion.h for Win32 build
- MSVC was confused about cassert/assert.h vs Assert.h
2013-11-01 23:38:52 +01:00
Sébastien Rombauts
256dedfa1e Fix Linux build of "example1" 2013-11-01 21:36:36 +01:00
Sébastien Rombauts
ecd22dc112 Fix issue #7 : SQLITECPP_ENABLE_ASSERT_HANDLER
- SQLITECPP_ASSERT() can call a user defined SQLite::assertion_failed() handler.
2013-11-01 21:33:43 +01:00
Sébastien Rombauts
8bf7339e6b Include "Exception.h" only on selected cpp files 2013-11-01 18:47:28 +01:00
Sébastien Rombauts
bc1275a32c Do not produce an error message if "build" directory is already there. 2013-11-01 11:55:34 +01:00
Sébastien Rombauts
4b96240012 Merge pull request #6 from ncorgan/cmake_var_fix
cmake: fixed CMake variable detecting Linux
2013-10-28 07:47:04 -07:00
Nicholas Corgan
908ff6f7d3 cmake: fixed CMake variable detecting Linux 2013-10-28 06:43:11 -07:00
Sébastien Rombauts
d752de0898 Merge pull request #5 from ncorgan/linux_64bit_cmake_fix
Added -fPIC flag to Linux builds
2013-10-27 09:56:13 -07:00
Nicholas Corgan
fd903b286d Added -fPIC flag to Linux builds
* When linking a shared library against SQLiteCpp, GCC/Clang throws a relocation error
2013-10-27 09:35:32 -07:00
Sébastien Rombauts
1af6930fc7 Added a cppcheck rule to the "all" target
- Travis: apt-get install cppcheck
2013-10-24 07:06:35 +02:00
Sébastien Rombauts
c93b461628 Updated submodule googletest just up to the 1.7.0 SVN release tag
- the release tag has not been added to the git repository
2013-10-24 06:57:16 +02:00
Sébastien Rombauts
28e9b702f7 Suppressed the flag SQLITE_ENABLE_COLUMN_METADATA from SQLiteC++ wrapper source code.
- it can be defined by CMake in client code application
2013-09-26 00:14:31 +02:00
Sébastien Rombauts
c5828d8787 Layout of the Troubleshooting section 2013-09-22 23:29:28 +02:00
Sébastien Rombauts
b1a8e45b20 Fixed issue #3 by stating that SQLiteC++ requires a sqlite3 library compiled with SQLITE_ENABLE_COLUMN_METADATA defined
- see http://www.sqlite.org/compile.html#enable_column_metadata
 - added an Troublesooting section in README.md
2013-09-22 23:27:12 +02:00
Sébastien Rombauts
466504aadb Fixed the 3 warnings specifis to 64 bits GCC build
- warnings revealed by issue 3
 - but also shown by Travis CI builds
2013-09-15 23:02:29 +02:00
Sébastien Rombauts
ec3b042bf5 Updated TODO (Unit Test) and Changelog (0.5.1) 2013-09-04 22:31:52 +02:00
Sébastien Rombauts
5b6170dfa1 Replace abort() by return EXIT_FAILURE 2013-09-03 10:30:36 +02:00
Sébastien Rombauts
7d775e67c8 Adding a build script for Linux/Unixes 2013-09-02 22:42:51 +02:00
Sébastien Rombauts
9c7d929ec5 Readme: CMake bash code formating 2013-09-02 22:34:54 +02:00
Sébastien Rombauts
98e35bddcf Adding a build script
- using the generic command "cmake --build ." instead of "make"
 - using the generic command "ctest" instead of "make test"
 - updated readme
2013-09-02 22:12:14 +02:00
Sébastien Rombauts
2b5d66eb25 Added a "sqlite3/CMakeLists.txt" file defining the SQLite3 static library for easier Windows build. 2013-09-01 17:30:54 +02:00
Sébastien Rombauts
d75c7a9449 Added a proper "src/CMakeLists.txt" file defining the static library.
- This enable using this SQLiteCpp repository as a Git submodule,
 - simply add_subdirectory (SQLiteCpp/src) to you main CMakeLists.txt
   and link to the "SQLiteCpp" wrapper library.
2013-09-01 17:22:49 +02:00
Sébastien Rombauts
a8b471e7ed Travis CI build status at the beginning of the README
- remove an old TODO already done
2013-09-01 16:37:04 +02:00
Sébastien Rombauts
8c001280a0 Added googletest as a submodule
- from the chromium git repository: https://git.chromium.org/git/external/googletest.git
2013-08-29 20:14:46 +02:00
Sébastien Rombauts
66ea7c7fa5 Adapting the CMake and test for Visual Studio under Windows 2013-08-25 20:06:03 +02:00
Sébastien Rombauts
66ac428732 Improving the Layout of the build status.
+ some more comments on building the wrapper as a Library
2013-08-25 19:25:56 +02:00
Sébastien Rombauts
9f8418d8c1 Adding picture of the current build status of Travis CI
- Improving CMake build & test explanations
2013-08-25 19:14:48 +02:00
Sébastien Rombauts
f462c937e2 Fixing a typo 2013-08-24 19:41:35 +02:00
Sébastien Rombauts
4709d4b49a Hyperlink to Travis-CI last build results. 2013-08-24 19:30:42 +02:00
Sébastien Rombauts
ada826aa8f Adding a "test" target to CMake & a Travis CI config file 2013-08-24 19:24:06 +02:00
Sébastien Rombauts
a02c80d157 Adding a basic CMake configuration file 2013-08-18 23:13:15 +02:00
Sébastien Rombauts
aeea5c4e6d Fixes #1: answer the question about "Multithreading/Monothreading" an thread-safety
SQLite supports three mode of thread safety, as describe in "SQLite And Multiple Threads" :
see http://www.sqlite.org/threadsafe.html

This SQLiteC++ wrapper does not add any lock (no mutexes) nor any other thread-safety mecanism
above the SQLite library itself, by design, for lightness and speed.

Thus, SQLiteC++ naturally supports the "Multi Thread" mode of SQLite ;
"In this mode, SQLite can be safely used by multiple threads
provided that no single database connection is used simultaneously in two or more threads."

But SQLiteC++ does not support the fully thread-safe "Serialized" mode of SQLite,
because of the way it shares the underling SQLite precompiled statement
in a custom shared pointer (See the inner class "Statement::Ptr").
2013-04-27 13:42:49 +02:00
Sébastien Rombauts
4d828fe6b1 Fixed two SQLiteC++ Coverity Issues in Database::execAndGet() and Database::tableExists()
- adding a (void) cast in front of query.executeStep()
- adding comments explaining how errors are handled in this thow methods

Thank you to Donald Jones and Mark Pashley of Ubiquisys for reporting this to me.
2013-04-27 13:42:48 +02:00
Sébastien Rombauts
3442a9a002 Eclipse CDT Release build configuration 2013-04-08 07:35:40 +02:00
Sébastien Rombauts
dd9295b1a6 Improving the example, showing the column names 2013-03-24 14:13:12 +01:00
Sébastien Rombauts
7669bcbf90 Adding a Column::getName() function
- thanks to a patch provided by Nellis Willers,
- requires the SQLITE_ENABLE_COLUMN_METADATA preprocessor macro to be also defined at compile times of the SQLite library
- v0.5.1
0.5.1
2013-04-07 18:25:19 +02:00
Sébastien Rombauts
1f55ddbbdb Cleaning of include dependencies 2013-04-07 18:16:31 +02:00
Sébastien Rombauts
833aeead7a Fix a bug for the "brief" Doxygen tag of all files
- patched by moving the @ingroup command before the @brief one
2013-03-16 17:50:37 +01:00
Sébastien Rombauts
83a3ca6f37 Doxygen group name without the trailing ++ 2013-03-15 15:46:11 +01:00
Sébastien Rombauts
4ee32ec736 Doxygen group name without the trailing "++" 2013-03-15 15:32:41 +01:00
Sébastien Rombauts
3ee357900e Fixed the example failing to find the example files in the new directory structure
+ Fixed a GCC unused variable warning in example1
0.5.0
2013-03-13 18:05:55 +01:00
Sébastien Rombauts
017927741f Minor version update 2013-03-12 22:55:03 +01:00
Sébastien Rombauts
6b82881841 - to have a good unit test coverage 2013-03-12 21:46:26 +01:00