Skip to content

Commit fc06e55

Browse files
committed
Add build constraints for non cgo
1 parent 67c1376 commit fc06e55

Some content is hidden

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

41 files changed

+69
-40
lines changed

Diff for: backup.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: backup_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
2+
//
13
// Use of this source code is governed by an MIT-style
24
// license that can be found in the LICENSE file.
35

6+
// +build cgo
7+
48
package sqlite3
59

610
import (

Diff for: callback.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: callback_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
2+
//
3+
// Use of this source code is governed by an MIT-style
4+
// license that can be found in the LICENSE file.
5+
6+
// +build cgo
7+
18
package sqlite3
29

310
import (

Diff for: error.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: error_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.
55

6+
// +build cgo
7+
68
package sqlite3
79

810
import (

Diff for: sqlite3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
33
//
44
// Use of this source code is governed by an MIT-style

Diff for: sqlite3_context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_go18.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_go18_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.
55

6-
// +build go1.8
6+
// +build go1.8,cgo
77

88
package sqlite3
99

Diff for: sqlite3_libsqlite3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_load_extension.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_load_extension_omit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_opt_allow_uri_authority.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
33
//
44
// Use of this source code is governed by an MIT-style

Diff for: sqlite3_opt_app_armor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
3-
3+
//
44
// Use of this source code is governed by an MIT-style
55
// license that can be found in the LICENSE file.
66

Diff for: sqlite3_opt_foreign_keys.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
33
//
44
// Use of this source code is governed by an MIT-style

Diff for: sqlite3_opt_fts3_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
// Copyright (C) 2015 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.
55

6+
// +build cgo
7+
68
package sqlite3
79

810
import (

Diff for: sqlite3_opt_fts5.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_opt_icu.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_opt_introspect.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
33

44
// Use of this source code is governed by an MIT-style

Diff for: sqlite3_opt_json1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_opt_preupdate.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// Copyright (C) 2019 G.J.R. Timmer <[email protected]>.
22
// Copyright (C) 2018 segment.com <[email protected]>
3-
3+
//
44
// Use of this source code is governed by an MIT-style
55
// license that can be found in the LICENSE file.
66

7+
// +build cgo
8+
79
package sqlite3
810

911
// SQLitePreUpdateData represents all of the data available during a

Diff for: sqlite3_opt_preupdate_hook.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (C) 2019 G.J.R. Timmer <[email protected]>.
22
// Copyright (C) 2018 segment.com <[email protected]>
3-
3+
//
44
// Use of this source code is governed by an MIT-style
55
// license that can be found in the LICENSE file.
66

Diff for: sqlite3_opt_preupdate_hook_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (C) 2019 G.J.R. Timmer <[email protected]>.
22
// Copyright (C) 2018 segment.com <[email protected]>
3-
3+
//
44
// Use of this source code is governed by an MIT-style
55
// license that can be found in the LICENSE file.
66

Diff for: sqlite3_opt_preupdate_omit.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (C) 2019 G.J.R. Timmer <[email protected]>.
22
// Copyright (C) 2018 segment.com <[email protected]>
3-
3+
//
44
// Use of this source code is governed by an MIT-style
55
// license that can be found in the LICENSE file.
66

7-
// +build !sqlite_preupdate_hook
7+
// +build !sqlite_preupdate_hook,cgo
88

99
package sqlite3
1010

Diff for: sqlite3_opt_secure_delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
33
//
44
// Use of this source code is governed by an MIT-style

Diff for: sqlite3_opt_secure_delete_fast.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
33
//
44
// Use of this source code is governed by an MIT-style

Diff for: sqlite3_opt_stat4.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
33
//
44
// Use of this source code is governed by an MIT-style

Diff for: sqlite3_opt_unlock_notify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2018 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_opt_unlock_notify_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2018 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_opt_vacuum_full.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
33
//
44
// Use of this source code is governed by an MIT-style

Diff for: sqlite3_opt_vacuum_incr.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
33
//
44
// Use of this source code is governed by an MIT-style

Diff for: sqlite3_opt_vtable.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_opt_vtable_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_other.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_solaris.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2018 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.
55

6+
// +build cgo
7+
68
package sqlite3
79

810
import (

Diff for: sqlite3_trace.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: sqlite3_type.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
2+
//
3+
// Use of this source code is governed by an MIT-style
4+
// license that can be found in the LICENSE file.
5+
16
package sqlite3
27

38
/*

Diff for: sqlite3_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
22
//
33
// Use of this source code is governed by an MIT-style
44
// license that can be found in the LICENSE file.

Diff for: static_mock.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
2+
//
3+
// Use of this source code is governed by an MIT-style
4+
// license that can be found in the LICENSE file.
5+
16
// +build !cgo
27

38
package sqlite3

0 commit comments

Comments
 (0)