Frank Braun
7ceff4fe49
make imported package name explicit
2020-08-20 03:22:35 +00:00
Frank Braun
eb39fcd95b
fix typo
2020-08-20 03:05:33 +00:00
Frank Braun
13274c6248
update badge
2020-08-20 03:03:20 +00:00
Frank Braun
89d243bc6d
add test to .PHONY
2020-08-20 02:50:42 +00:00
Frank Braun
c0ffa3b4ce
add missing newline
2020-08-20 02:50:22 +00:00
Frank Braun
ddac31c587
Merge pull request #14 from klingtnet/replace-travis-with-github-actions
...
Replace Travis CI with Github Actions
2020-08-20 02:49:20 +00:00
Andreas Linz
ffb2c496ae
Replace Travis CI with Github Actions
...
The motiviation behind this change is that Github Actions is obviously better integrated in Github than Travis CI and that it will be easy to run test against non Linux platforms, e.g. macOS or Windows.
Tests are now run for the three most recent Go versions, i.e. Go 1.13, 1.14 and 1.15 .
A new 'test' target was added to the Makefile.
2020-08-19 19:49:26 +02:00
Frank Braun
f52b843737
update README
2020-07-23 04:40:32 +00:00
Frank Braun
93d8e09d7f
update github.com/mattn/go-sqlite3 to latest
...
Related to #8
2020-07-23 04:09:25 +00:00
Frank Braun
c295eba9b5
update LICENSE file
...
The licenses didn't change per se, but reflect changed wordings.
2020-07-23 03:50:16 +00:00
Frank Braun
0281f43053
use new import path for v4 series
2020-07-23 02:33:59 +00:00
Frank Braun
8b29dea77d
document date of go-sqlite3 sources
2020-07-23 02:08:16 +00:00
Frank Braun
13d6b38f27
.travis.yml: bump Go version
2020-07-23 02:05:26 +00:00
Frank Braun
78e06c3d61
upgrade SQLCipher to 4.4.0
...
Also upgrade libtomcrypt to the latest version.
Thanks to André Medeiros for preparing the switch to SQLCipher 4.x
with https://github.com/mutecomm/go-sqlcipher/pull/9
2020-07-23 02:04:21 +00:00
Frank Braun
55dbde1788
mention SQLCipher 3.x releases in README
...
Related to issue #7
2019-02-27 15:23:16 +00:00
Frank Braun
6c235a2a22
update code from github.com/sqlcipher/sqlcipher
...
To release v3.4.2.
Related to issue #7
2019-02-27 15:18:15 +00:00
Frank Braun
8416e17111
travis: also download test dependencies
2019-02-27 14:42:48 +00:00
Frank Braun
3aeeb353c7
goimports -w
2019-02-27 14:25:55 +00:00
Frank Braun
0f6a32fd34
bump go version for tests
2019-02-26 22:20:48 +00:00
Frank Braun
7cfed398a7
add Makefile and activate modules
2019-02-26 17:54:51 +00:00
Frank Braun
77b893cedc
use github.com/mutecomm/go-sqlcipher for example
2019-02-26 17:53:30 +00:00
Frank Braun
f799951b4a
remove unnecssary flag
...
This pulls in the pthreads library on Windows.
It is not necessary to make libtomcrypt thread safe, a mutex is already
applied in sqlcipher.
2017-09-20 22:46:53 +00:00
Frank Braun
eee495e76d
add ExampleIsEncrypted()
2017-05-09 13:16:13 +00:00
Frank Braun
0fd2b12476
document sqlite3.IsEncrypted()
2017-05-08 21:04:03 +00:00
Frank Braun
81d39a96e8
add IsEncrypted() and tests to check encryption
2017-05-08 20:59:16 +00:00
Frank Braun
6bf6f0208d
rename SQLCipher specific tests
2017-05-08 19:01:47 +00:00
Frank Braun
1ea89987f6
add missing pragmas
2017-05-08 18:54:00 +00:00
Frank Braun
2fc2f58d75
update code from github.com/mattn/go-sqlite3
...
Upstream fix to
https://github.com/mattn/go-sqlite3/issues/311
resolves issue #5
2017-04-26 07:12:32 +00:00
Frank Braun
5270fcca18
bump go version for tests
2017-04-24 23:22:57 +00:00
Frank Braun
7fafec4233
update code from github.com/sqlcipher/sqlcipher
...
To release v3.4.1.
Related to issue #5
2017-04-24 23:16:23 +00:00
Frank Braun
34287a64fb
Merge pull request #3 from nkbai/master
...
build error on windows because of pthread
2016-07-01 14:27:31 +00:00
nkbai
fe462c2f29
build error on windows because of pthread
2016-07-01 21:43:08 +08:00
Frank Braun
23f3da79a8
switch test setup to gocheck
2016-02-02 23:47:42 +00:00
Frank Braun
b71d753b66
add support for dsn _pragma_foreign_keys
2015-11-30 01:04:21 +00:00
Frank Braun
e4e8007f0d
make _pragma_key more generic
2015-11-30 01:00:07 +00:00
Frank Braun
9314beb63f
open with databases with C.SQLITE_OPEN_NOMUTEX
...
Instead of C.SQLITE_OPEN_FULLMUTEX.
With the currently used combination of flags in
https://github.com/mattn/go-sqlite3/blob/master/sqlite3.go (compilation with
-DSQLITE_THREADSAFE and sqlite3_open_v2() called with flag
SQLITE_OPEN_FULLMUTEX) SQLite database files are opened in serialized mode
(https://www.sqlite.org/threadsafe.html ).
Since sql.Open() (https://golang.org/pkg/database/sql/#Open ) is safe for
concurrent use by multiple goroutines it should be enough to open SQLite
database files in multi-thread mode (flag SQLITE_OPEN_NOMUTEX instead of
SQLITE_OPEN_FULLMUTEX). This should also improve performance.
See also https://github.com/mattn/go-sqlite3/issues/249
2015-11-30 00:09:43 +00:00
Frank Braun
60160a1594
fix parallel access to an encrypted database
2015-11-30 00:02:48 +00:00
Frank Braun
5a9c8c118c
update code from github.com/mattn/go-sqlite3
2015-11-29 22:21:55 +00:00
Frank Braun
c81b870b72
path.Join() -> filepath.Join()
2015-11-17 14:58:18 +00:00
Frank Braun
fa20792af2
disable anything "not portable" in libtomcrypt
2015-11-03 04:33:15 +00:00
Frank Braun
33577bebab
add note about bug
2015-10-10 15:16:22 +02:00
Frank Braun
8545f20d37
add test for parallel access
2015-10-10 15:10:24 +02:00
Frank Braun
e4f3941ae6
make libtomcrypt thread-safe
2015-10-02 01:00:17 +02:00
Frank Braun
273db7c61f
go test -cover
2015-09-27 08:31:48 +02:00
Frank Braun
35afdd14fb
update go-sqlite3 & fix tests
2015-09-27 08:30:08 +02:00
Frank Braun
4dc6ba16e8
add .travis.yml
2015-09-27 08:04:06 +02:00
Frank Braun
bb1d15f32b
improve README.md
2015-09-27 08:01:47 +02:00
Frank Braun
e96b2ad74d
add script to track libtomcrypt changes
2015-09-13 16:57:01 +02:00
Frank Braun
949344cdff
update code from github.com/sqlcipher/sqlcipher
2015-09-13 16:31:55 +02:00
Frank Braun
6d954fda7b
update code from github.com/mattn/go-sqlite3
2015-09-13 16:28:51 +02:00