Copy writes the entire database to a writer. This function exists for backwards compatibility. Deprecated: Use WriteTo() instead.
(w io.Writer)
| 382 | // |
| 383 | // Deprecated: Use WriteTo() instead. |
| 384 | func (tx *Tx) Copy(w io.Writer) error { |
| 385 | _, err := tx.WriteTo(w) |
| 386 | return err |
| 387 | } |
| 388 | |
| 389 | // WriteTo writes the entire database to a writer. |
| 390 | // If err == nil then exactly tx.Size() bytes will be written into the writer. |