From 32f8e5fee97af14d854dd0bc8d57d575d383e803 Mon Sep 17 00:00:00 2001 From: Chyroc Date: Thu, 1 Mar 2018 22:29:23 +0800 Subject: [PATCH] add tx-copy-deprecated --- tx.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tx.go b/tx.go index 5c02907..41a9bc6 100644 --- a/tx.go +++ b/tx.go @@ -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