From d3334c1381db6a159cac1d2818ab2b543a166ad1 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 18 Aug 2014 16:52:06 +0900 Subject: Use code --- backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backup.go') diff --git a/backup.go b/backup.go index ab56961..0e3d6fa 100644 --- a/backup.go +++ b/backup.go @@ -31,7 +31,7 @@ func (c *SQLiteConn) Backup(dest string, conn *SQLiteConn, src string) (*Backup, // function returns SQLITE_DONE (Code 101) func (b *Backup) Step(p int) (bool, error) { ret := C.sqlite3_backup_step(b.b, C.int(p)) - if ret == 101 { + if ret == C.SQLITE_DONE { return true, nil } else if ret != 0 { return false, Error{Code: ErrNo(ret)} -- cgit v1.2.3 From 5e5d088a3662a12104630827ac6926f7626d23cf Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 18 Aug 2014 16:56:31 +0900 Subject: Add license header --- backup.go | 4 ++++ doc.go | 5 +++++ error.go | 4 ++++ error_test.go | 4 ++++ sqlite3.go | 4 ++++ sqlite3_other.go | 4 ++++ sqlite3_test.go | 4 ++++ sqlite3_windows.go | 4 ++++ 8 files changed, 33 insertions(+) (limited to 'backup.go') diff --git a/backup.go b/backup.go index 0e3d6fa..9e79c60 100644 --- a/backup.go +++ b/backup.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. package sqlite3 /* diff --git a/doc.go b/doc.go index 51364c3..f1c307b 100644 --- a/doc.go +++ b/doc.go @@ -1,3 +1,8 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + /* Package sqlite3 provides interface to SQLite3 databases. diff --git a/error.go b/error.go index 52017bf..59b5051 100644 --- a/error.go +++ b/error.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. package sqlite3 import "C" diff --git a/error_test.go b/error_test.go index e21f215..6a8660d 100644 --- a/error_test.go +++ b/error_test.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. package sqlite3 import ( diff --git a/sqlite3.go b/sqlite3.go index fc3e8ad..1683a48 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. package sqlite3 /* diff --git a/sqlite3_other.go b/sqlite3_other.go index e8673ac..c87c01f 100644 --- a/sqlite3_other.go +++ b/sqlite3_other.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. // +build !windows package sqlite3 diff --git a/sqlite3_test.go b/sqlite3_test.go index 4f20026..0f10780 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. package sqlite3 import ( diff --git a/sqlite3_windows.go b/sqlite3_windows.go index e4ebc24..c5565e9 100644 --- a/sqlite3_windows.go +++ b/sqlite3_windows.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. package sqlite3 /* -- cgit v1.2.3 From 6535341da906b68a836904b742145b409e961a56 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 18 Aug 2014 17:00:59 +0900 Subject: Add one blank line for godoc --- backup.go | 1 + error.go | 1 + error_test.go | 1 + sqlite3.go | 1 + sqlite3_test.go | 1 + sqlite3_windows.go | 1 + 6 files changed, 6 insertions(+) (limited to 'backup.go') diff --git a/backup.go b/backup.go index 9e79c60..4b2a72d 100644 --- a/backup.go +++ b/backup.go @@ -2,6 +2,7 @@ // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. + package sqlite3 /* diff --git a/error.go b/error.go index 59b5051..b910108 100644 --- a/error.go +++ b/error.go @@ -2,6 +2,7 @@ // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. + package sqlite3 import "C" diff --git a/error_test.go b/error_test.go index 6a8660d..a006188 100644 --- a/error_test.go +++ b/error_test.go @@ -2,6 +2,7 @@ // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. + package sqlite3 import ( diff --git a/sqlite3.go b/sqlite3.go index 1683a48..aac71ad 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -2,6 +2,7 @@ // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. + package sqlite3 /* diff --git a/sqlite3_test.go b/sqlite3_test.go index 0f10780..581d289 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -2,6 +2,7 @@ // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. + package sqlite3 import ( diff --git a/sqlite3_windows.go b/sqlite3_windows.go index c5565e9..269c05a 100644 --- a/sqlite3_windows.go +++ b/sqlite3_windows.go @@ -2,6 +2,7 @@ // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. + package sqlite3 /* -- cgit v1.2.3