Merge pull request #87 from gyuho/deprecated

Cherry-pick "add tx-copy-deprecated"
pull/89/head
Gyuho Lee 2018-03-17 01:10:57 -07:00 committed by GitHub
commit d57ee90507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

4
tx.go
View File

@ -303,7 +303,9 @@ func (tx *Tx) close() {
}
// Copy writes the entire database to a writer.
// This function exists for backwards compatibility. Use WriteTo() instead.
// This function exists for backwards compatibility.
//
// Deprecated; Use WriteTo() instead.
func (tx *Tx) Copy(w io.Writer) error {
_, err := tx.WriteTo(w)
return err