Skip to content

Commit be424d2

Browse files
committed
Fix merge conflicts
2 parents 41c52a3 + 25ecb14 commit be424d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+12733
-4640
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@
22
*.exe
33
*.dll
44
*.o
5+
6+
# VSCode
7+
.vscode
8+
9+
# Exclude from upgrade
10+
upgrade/*.c
11+
upgrade/*.h
12+
13+
# Exclude upgrade binary
14+
upgrade/upgrade

.travis.yml

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,41 @@
11
language: go
2-
sudo: required
3-
dist: trusty
2+
3+
os:
4+
- linux
5+
- osx
6+
7+
addons:
8+
apt:
9+
update: true
10+
411
env:
5-
- GOTAGS=
6-
- GOTAGS=libsqlite3
7-
- GOTAGS=trace
8-
- GOTAGS=vtable
12+
matrix:
13+
- GOTAGS=
14+
- GOTAGS=libsqlite3
15+
- GOTAGS="sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable"
16+
- GOTAGS=sqlite_vacuum_full
17+
918
go:
10-
- 1.7.x
11-
- 1.8.x
1219
- 1.9.x
13-
- master
20+
- 1.10.x
21+
1422
before_install:
15-
- go get github.com/mattn/goveralls
16-
- go get golang.org/x/tools/cmd/cover
23+
- |
24+
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
25+
brew update
26+
brew upgrade icu4c
27+
fi
28+
- |
29+
go get github.com/smartystreets/goconvey
30+
if [[ "${GOOS}" != "windows" ]]; then
31+
go get github.com/mattn/goveralls
32+
go get golang.org/x/tools/cmd/cover
33+
fi
34+
1735
script:
18-
- $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx
19-
- go test -race -v . -tags "$GOTAGS"
36+
- GOOS=$(go env GOOS) GOARCH=$(go env GOARCH) go build -v -tags "${GOTAGS}" .
37+
- |
38+
if [[ "${GOOS}" != "windows" ]]; then
39+
$HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx
40+
go test -race -v . -tags "${GOTAGS}"
41+
fi

README.md

Lines changed: 452 additions & 31 deletions
Large diffs are not rendered by default.

callback.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,18 @@ func callbackRetText(ctx *C.sqlite3_context, v reflect.Value) error {
350350
return nil
351351
}
352352

353+
func callbackRetNil(ctx *C.sqlite3_context, v reflect.Value) error {
354+
return nil
355+
}
356+
353357
func callbackRet(typ reflect.Type) (callbackRetConverter, error) {
354358
switch typ.Kind() {
359+
case reflect.Interface:
360+
errorInterface := reflect.TypeOf((*error)(nil)).Elem()
361+
if typ.Implements(errorInterface) {
362+
return callbackRetNil, nil
363+
}
364+
fallthrough
355365
case reflect.Slice:
356366
if typ.Elem().Kind() != reflect.Uint8 {
357367
return nil, errors.New("the only supported slice type is []byte")

0 commit comments

Comments
 (0)