Sébastien Rombauts
09db07ccc7
Updated version to 1.0.0 changelog and copyright date
2015-05-03 23:32:57 +02:00
Sébastien Rombauts
e537195625
Fix #47 setBusyTimeout in constructor
...
- add corresponding Unit Test
2015-05-03 23:32:50 +02:00
Sébastien Rombauts
3c39f1ff1c
Fix 3 new cpplint warnings about max line size
2015-05-03 23:32:40 +02:00
Sébastien Rombauts
f5e0cafa72
Minor fixes to comments and fix the build
2015-05-03 23:32:24 +02:00
Sébastien Rombauts
31dbcda9ad
Minor fixes to comments and an API
2015-05-03 23:32:14 +02:00
Sébastien Rombauts
8797f16d12
Add Statement::getColumnName(aIndex)
...
- enable getting names befor gettings rows of result
2015-05-03 23:32:05 +02:00
Sébastien Rombauts
acaed41465
setBusyTimeout() now uses check() and throw in case of error
...
- add unit test for setBusyTimeout()
- add unit test for in memory databases
2015-05-03 23:29:31 +02:00
Sébastien Rombauts
18620457b1
Add some more Unit Tests
2015-05-03 23:29:22 +02:00
Sébastien Rombauts
7fbfc29677
Fix #23 optimized Statement::getColumn() by name
...
- fix Statement::getColumn(apName) provided by #45 but was not working
instead of using #46 that conflicts with current master
- rework it by using a map of columns name as
a cache populated the first time the method is called
- add corresponding Unit Test
2015-05-03 23:28:41 +02:00
Sébastien Rombauts
29a9645314
Fix cpplint style warning introduced by #45
2015-05-03 23:28:01 +02:00
Jack.Yuan
134efd6392
Update Statement.cpp
2015-04-17 15:58:36 +08:00
Sébastien Rombauts
b84721aed3
Update copyright date in recently modified files
2015-03-08 22:53:33 +01:00
Sébastien Rombauts
f31a459cd8
Revert #31 Statement now stores the status of the last operation.
...
- the check in the destructor was not a good idea finaly,
and I added instead a getErrorCode() method
2015-03-08 15:12:26 +01:00
AndyLing
bb7a047d52
Fixed whitespace issues
2014-09-19 12:00:27 +01:00
AndyLing
4e770eb741
Statement now stores the status of the last operation so it can be checked in the pointer destructor
2014-09-19 10:54:55 +01:00
S. Alexander Zaman
78fcc0d050
clearBinding functionality to statement.cpp
...
clearBinding functionality
2014-08-19 16:18:21 -05:00
Sébastien Rombauts
78ea5b254f
Removed all meaningless (void) from method definitions
2014-03-13 21:56:28 +01:00
Sébastien Rombauts
3af95da230
Added comments and test arround Database::exec() method
2014-03-13 21:44:07 +01:00
Sébastien Rombauts
6d8b808320
Fixed many cpplint warnings
2014-03-07 13:12:31 +01:00
Sébastien Rombauts
7bfaafecba
Moved include files out of the src/ dir, to an include/ dir
...
+ started a void test file
2014-03-04 23:04:38 +01:00
Sébastien Rombauts
ff946bd295
Changed Column::getText() to return empty string "" by default instead of NULL pointer (to handle std::string conversion)
...
- Fix issue #17
2014-02-26 18:43:19 +01:00
Sébastien Rombauts
b0e9104047
Using the C++11 "noexcept" keyword instead of "throw()"
...
- added a compatibility #define for older compilers
2014-02-26 18:36:18 +01:00
Wesley J. Landaker
4dfb3cc4b0
Support opening a database with a custom VFS.
2014-02-18 09:18:40 -07:00
Sébastien Rombauts
e7aa4f46bb
Added options in the root CMakeList.txt to inactivate any optional targets & move back to a single CMakeList.txt
2014-02-07 16:34:05 +01:00
Sébastien Rombauts
d6f5029f6c
Some small cleanup and uniformisation arround the new createFunction() API
2014-02-06 22:48:35 +01:00
AlexZ
de04b3c2e8
added wrapper for sqlite3_create_function_v2
2014-02-06 09:53:08 -06:00
r4d2
905c3d7bb5
std::string API (implementing issue #13
2014-01-12 00:15:10 +01: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
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
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
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
Nicholas Corgan
908ff6f7d3
cmake: fixed CMake variable detecting Linux
2013-10-28 06:43:11 -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
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
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
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
66ea7c7fa5
Adapting the CMake and test for Visual Studio under Windows
2013-08-25 20:06:03 +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
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
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
19e66c288a
Updated Doxygen documentation
2013-03-10 18:17:02 +01:00
Sebastien Rombauts
1a82510821
Reorganizing the directory, the sources and the msvc files
2013-03-10 12:38:50 +01:00
Sébastien Rombauts
44fde46e2a
Blob example using an in-memory database
2013-03-09 23:00:02 +01:00
Sébastien Rombauts
65ad65b40c
Adding a test/example for blob methods, with a fix for bind(blob)
2013-03-09 22:50:53 +01:00