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

backup.go

Lines changed: 1 addition & 1 deletion
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.

backup_test.go

Lines changed: 4 additions & 0 deletions
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 (

callback.go

Lines changed: 1 addition & 1 deletion
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.

callback_test.go

Lines changed: 7 additions & 0 deletions
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 (

error.go

Lines changed: 1 addition & 1 deletion
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.

error_test.go

Lines changed: 3 additions & 1 deletion
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 (

sqlite3.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_context.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_go18.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_go18_test.go

Lines changed: 2 additions & 2 deletions
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

sqlite3_libsqlite3.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_load_extension.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_load_extension_omit.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_opt_allow_uri_authority.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_opt_app_armor.go

Lines changed: 2 additions & 2 deletions
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

sqlite3_opt_foreign_keys.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_opt_fts3_test.go

Lines changed: 3 additions & 1 deletion
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 (

sqlite3_opt_fts5.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_opt_icu.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_opt_introspect.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_opt_json1.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_opt_preupdate.go

Lines changed: 3 additions & 1 deletion
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

sqlite3_opt_preupdate_hook.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_opt_preupdate_hook_test.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_opt_preupdate_omit.go

Lines changed: 2 additions & 2 deletions
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

sqlite3_opt_secure_delete.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_opt_secure_delete_fast.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_opt_stat4.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_opt_unlock_notify.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_opt_unlock_notify_test.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_opt_vacuum_full.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_opt_vacuum_incr.go

Lines changed: 1 addition & 1 deletion
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

sqlite3_opt_vtable.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_opt_vtable_test.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_other.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_solaris.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_test.go

Lines changed: 3 additions & 1 deletion
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 (

sqlite3_trace.go

Lines changed: 1 addition & 1 deletion
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.

sqlite3_type.go

Lines changed: 5 additions & 0 deletions
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
/*

sqlite3_windows.go

Lines changed: 1 addition & 1 deletion
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.

static_mock.go

Lines changed: 5 additions & 0 deletions
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)