603 Commits

Author SHA1 Message Date
Sébastien Rombauts
926ebdab8f Merge pull request #137 from fekir/remove_noexcept
Remove noexcept
2017-08-21 11:12:16 +02:00
Sébastien Rombauts
9c15cf7c98 Merge pull request #136 from fekir/fix_stream
Ensure that operator<< correctly prints strings with embedded '\0'
2017-08-21 11:10:57 +02:00
Sébastien Rombauts
3c3b23a712 Merge pull request #134 from drivehappy/master
Warning cleanup under MSVC and Clang
2017-08-21 11:08:35 +02:00
Sébastien Rombauts
8d0ef9700a Merge pull request #138 from fekir/enhance_sqlite_exception
Enhance sqlite exception with overloaded constructor and default copy constructor and assignment operator
2017-08-21 11:04:22 +02:00
fekir
a826dcacc1 Improve test for constructor consistency 2017-08-19 09:19:55 +02:00
fekir
b2f059e188 Add test for constructor consistency 2017-08-19 09:18:28 +02:00
fekir
67ac88fb1e Add SQLite::Exception constructor that takes const char* in order to avoid possible std::bad_alloc exception
std::runtime_error provides such overload in c++11, therefore it will make no difference when compiling for c++03, but should provide no harm either
2017-08-19 08:59:57 +02:00
fekir
94ebe5ced6 Add default copy constructor to exception class
The throw statement may copy the exception, since exception are thrown by value
Having const members disables the assignment operator
2017-08-19 08:53:01 +02:00
fekir
d3a10465b5 Remove unused variable 2017-08-18 20:24:36 +02:00
fekir
db156e6282 Remove noexcept from setBusyTimeout since it may throw (it is also documented) 2017-08-18 20:20:55 +02:00
fekir
697929cfbe Remove noexcept since std::string constructor may throw 2017-08-18 20:20:29 +02:00
fekir
21ead7c5a4 Ensure that operator<< correctly prints strings with embedded '\0' 2017-08-18 18:24:10 +02:00
drivehappy
d39ff3475e Fixing tab indentation to use spaces. 2017-08-03 15:36:26 -07:00
drivehappy
6adc4cd5a8 Fixing unused parameter warning under Clang. 2017-08-03 13:34:16 -07:00
drivehappy
218aca1b13 Fixing warning under MSVC. 2017-08-03 13:33:08 -07:00
Sébastien Rombauts
670d710f62 Update version to 2.1.0 and add appropriate changelog 2.1.0 2017-07-18 14:56:18 +02:00
Sébastien Rombauts
1a2c7cbba7 Update sqlite3 from 3.13 to 3.19.3 (2017-06-08)
Fix #125 Incompatibility in 3.19.0 using a new CMake variable SQLITE_USE_LEGACY_STRUCT
2017-07-18 14:55:25 +02:00
Sébastien Rombauts
078941cdb1 Fix #130 Statement::getColumns() template function now uses T{} instead of T()
Thanks to @cycycyc for providing this improvement
2017-07-17 15:26:02 +02:00
Sébastien Rombauts
f08c15f43b print CMake version 2017-04-12 17:31:19 +02:00
Sébastien Rombauts
ad3956ab4f Comment out #111 "linked SQLiteCpp to sqlite3" since it breacks PR #118 "install step" 2017-04-12 17:31:11 +02:00
Sébastien Rombauts
b830e6406f Merge pull request #111 from Yanpas/cmake_link
linked SQLiteCpp to sqlite3

SRombauts: explicitely as PUBLIC
2017-04-12 16:21:50 +02:00
Sébastien Rombauts
efa4917f22 Merge branch 'master' into cmake_link 2017-04-12 16:19:06 +02:00
Sébastien Rombauts
0938ca68a7 Set theme jekyll-theme-slate 2017-04-08 21:38:36 +02:00
Sébastien Rombauts
03b2293805 Update README.md
Copyright notice 2017 and PayPal.me link & logo
2017-04-08 14:36:18 +02:00
Sébastien Rombauts
d390342be7 Merge pull request #120 from vbraun/cpplint-py3
Make cpplint.py Python-3 compatible
2017-04-06 17:01:09 +02:00
Volker Braun
a537dd6375 Make cpplint.py Python-3 compatible 2017-04-06 16:20:33 +02:00
Sébastien Rombauts
c6dc1c7cdf Merge pull request #119 from timrae/fix-warnings
Fix some warnings and increase safety checking on gcc
2017-03-31 07:27:29 +02:00
Timothy Rae
2123ef0348 Use pedantic warnings
From the gcc manual:
Issue all the warnings demanded by strict ISO C and ISO C++; reject all programs that use forbidden extensions, and some other programs that do not follow ISO C and ISO C++. For ISO C, follows the version of the ISO C standard specified by any -std option used.

Note: ISO C++98 doesn't support the "long long" data type, so we disable that warning
-Winit-self can be removed as it's enabled by -Wall
2017-03-31 12:41:21 +09:00
Timothy Rae
400ab71fa3 Fix unused parameter warning 2017-03-31 12:22:48 +09:00
Timothy Rae
b23f2e155f Use -Wextra flag with gcc
From the manual:
This enables some extra warning flags that are not enabled by -Wall. (This option used to be called -W. The older name is still supported, but the newer name is more descriptive.)

-Wclobbered
-Wempty-body
-Wignored-qualifiers
-Wimplicit-fallthrough=3
-Wmissing-field-initializers
-Wmissing-parameter-type (C only)
-Wold-style-declaration (C only)
-Woverride-init
-Wsign-compare (C only)
-Wtype-limits
-Wuninitialized
-Wshift-negative-value (in C++03 and in C99 and newer)
-Wunused-parameter (only with -Wunused or -Wall)
-Wunused-but-set-parameter (only with -Wunused or -Wall)
2017-03-31 12:22:38 +09:00
Timothy Rae
4c339031f0 Remove const from Database::isUnencrypted() return type
Compiling with gcc pedantic mode was leading to a warning: "type qualifiers ignored on function return type"
2017-03-31 12:12:46 +09:00
Sébastien Rombauts
6932525174 Merge pull request #118 from timrae/add-install-target
Add install step
2017-03-27 13:57:03 +02:00
Timothy Rae
8387b594eb Add install step 2017-03-27 18:41:44 +09:00
Sébastien Rombauts
4d6356f700 Merge pull request #117 from dunkelfalke/patch-1
Update Statement.h documentation
2017-03-21 18:15:42 +01:00
dunkelfalke
f4a7e7c7ea Update Statement.h
Missing parameter name in the documentation comment
2017-03-21 17:45:39 +01:00
Sébastien Rombauts
f69986a1c5 Merge pull request #114 from dend456/master
Added convenience functions for constructing objects from a row
2017-02-13 18:14:36 +01:00
dend
f01a644dc0 Added convenience functions for constructing objects from a row 2017-02-12 22:10:29 -05:00
Sébastien Rombauts
92bbeccffe Fix #113 SQLite 3.7.15 minimum for sqlite3_errstr()
SQLite 3.7.15 was release in 2012-12-12
2017-02-03 15:09:34 +01:00
Sébastien Rombauts
f00d69c9ad Fix #112 format error in README 2017-01-31 08:53:06 +01:00
Yan Pashkovsky
870bb9963f linked SQLiteCpp to sqlite3
Now there is no need to link each target ot both libs
2016-12-28 19:40:33 +03:00
Sébastien Rombauts
cb44cca41c Merge pull request #107 from jowr/master: encrypted databases
Added ability to open encrypted databases.
2016-12-25 11:28:30 +01:00
Jorrit Wronski
dbd31fb56b Fixed some compiler warnings 2016-12-23 14:57:09 +01:00
Jorrit Wronski
d26bd2cb8a Added tests for the encrypted database 2016-12-23 14:54:02 +01:00
Jorrit Wronski
498525bb26 Final modifications for cpplint and gcc 2016-12-23 14:20:54 +01:00
Jorrit Wronski
f5a25167a4 Debugging GCC build errors remotely is not fun... 2016-12-23 14:16:37 +01:00
Jorrit Wronski
a7d5ea4c2b Trying to gcc happy 2016-12-23 14:06:36 +01:00
Jorrit Wronski
823828fc9e Made encryption test static and fixed the encryption docs 2016-12-23 13:52:59 +01:00
Jorrit Wronski
02f8fe19c0 Fixed some documentation and corrected the encryption detection. 2016-12-23 08:02:13 +01:00
Jorrit Wronski
685ff293c5 moved the key handling to a new function, added a check for an encrypted database 2016-12-22 17:52:06 +01:00
Sébastien Rombauts
13d12f1e48 Travis CI : do not try to "brew install cmake" on OS X 2016-12-02 15:05:30 +01:00