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
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
Jorrit Wronski
611ab22458
Added ability to open encrypted databases.
2016-12-01 23:37:22 +01:00
Sébastien Rombauts
b6512c4c6f
Merge pull request #102 from Nemo1369/master
...
Remove redundant const specifier
2016-09-09 13:44:36 +02:00
Mikhail Komarov
51885d7aa6
Redundant const specifier removed
2016-09-09 13:31:36 +03:00
Sébastien Rombauts
6d1806b2e4
Merge pull request #100 from Asriwi/master
...
Link libssp when targetted
2016-09-02 18:29:27 +02:00
Sébastien Rombauts
343a3ca907
Update README to mention the new "SQLiteCpp_Example" side repository
2016-09-02 18:21:51 +02:00
Sébastien Rombauts
c5bc2d80cc
Fix broken build.sh (missing "fi")
2016-09-02 17:34:27 +02:00
Ashley Williams
acbad05257
Revert linking ssp in SQLiteCpp and link ssp in the example project for MSYS and MINGW
2016-08-30 20:06:05 +01:00
Ashley Williams
4b4bc3f17a
Link libssp when targetted
2016-08-29 18:50:28 +01:00
Sébastien Rombauts
d04c8699d2
Apply code style
2016-08-05 07:56:20 +02:00
Sébastien Rombauts
bfd8bb2c63
Merge pull request #96 from couchbasedeps/master
...
Fixed link errors calling Exception::getErrorCode()
2016-08-05 07:50:31 +02:00
Jens Alfke
30e285ff89
Fixed link errors calling Exception::getErrorCode()
...
getErrorCode() and getExtendedErrorCode()'s implementations were
accidentally declared as inline in the .cpp file. This causes the
compiler to not generate any code for them, resulting in link errors
when a client calls them.
Fixed by moving the implementations into the header, where they need to
be if they're inline.
2016-08-04 16:36:09 -07:00