Skip to content

Commit

Permalink
Add build constraints for non cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Nov 18, 2019
1 parent 67c1376 commit fc06e55
Show file tree
Hide file tree
Showing 41 changed files with 69 additions and 40 deletions.
2 changes: 1 addition & 1 deletion backup.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
4 changes: 4 additions & 0 deletions backup_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// +build cgo

package sqlite3

import (
Expand Down
2 changes: 1 addition & 1 deletion callback.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
7 changes: 7 additions & 0 deletions callback_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// +build cgo

package sqlite3

import (
Expand Down
2 changes: 1 addition & 1 deletion error.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
4 changes: 3 additions & 1 deletion error_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// +build cgo

package sqlite3

import (
Expand Down
2 changes: 1 addition & 1 deletion sqlite3.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
//
// Use of this source code is governed by an MIT-style
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_context.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_go18.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
4 changes: 2 additions & 2 deletions sqlite3_go18_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// +build go1.8
// +build go1.8,cgo

package sqlite3

Expand Down
2 changes: 1 addition & 1 deletion sqlite3_libsqlite3.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_load_extension.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_load_extension_omit.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_allow_uri_authority.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
//
// Use of this source code is governed by an MIT-style
Expand Down
4 changes: 2 additions & 2 deletions sqlite3_opt_app_armor.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.

//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_foreign_keys.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
//
// Use of this source code is governed by an MIT-style
Expand Down
4 changes: 3 additions & 1 deletion sqlite3_opt_fts3_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Copyright (C) 2015 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// +build cgo

package sqlite3

import (
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_fts5.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_icu.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_introspect.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.

// Use of this source code is governed by an MIT-style
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_json1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
4 changes: 3 additions & 1 deletion sqlite3_opt_preupdate.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (C) 2019 G.J.R. Timmer <[email protected]>.
// Copyright (C) 2018 segment.com <[email protected]>

//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// +build cgo

package sqlite3

// SQLitePreUpdateData represents all of the data available during a
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_preupdate_hook.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (C) 2019 G.J.R. Timmer <[email protected]>.
// Copyright (C) 2018 segment.com <[email protected]>

//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_preupdate_hook_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (C) 2019 G.J.R. Timmer <[email protected]>.
// Copyright (C) 2018 segment.com <[email protected]>

//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

Expand Down
4 changes: 2 additions & 2 deletions sqlite3_opt_preupdate_omit.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (C) 2019 G.J.R. Timmer <[email protected]>.
// Copyright (C) 2018 segment.com <[email protected]>

//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// +build !sqlite_preupdate_hook
// +build !sqlite_preupdate_hook,cgo

package sqlite3

Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_secure_delete.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
//
// Use of this source code is governed by an MIT-style
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_secure_delete_fast.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
//
// Use of this source code is governed by an MIT-style
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_stat4.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
//
// Use of this source code is governed by an MIT-style
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_unlock_notify.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2018 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_unlock_notify_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2018 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_vacuum_full.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
//
// Use of this source code is governed by an MIT-style
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_vacuum_incr.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2018 G.J.R. Timmer <[email protected]>.
//
// Use of this source code is governed by an MIT-style
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_vtable.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_opt_vtable_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_other.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_solaris.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2018 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
4 changes: 3 additions & 1 deletion sqlite3_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// +build cgo

package sqlite3

import (
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_trace.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2016 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
5 changes: 5 additions & 0 deletions sqlite3_type.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

package sqlite3

/*
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Expand Down
5 changes: 5 additions & 0 deletions static_mock.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright (C) 2019 Yasuhiro Matsumoto <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// +build !cgo

package sqlite3
Expand Down

0 comments on commit fc06e55

Please sign in to comment.