code: func NewTxWriter(tx *Transaction, p Procedure) quad.Writer {
  	if p == 0 {
  		p = Add
  	}
  	return &txWriter{tx: tx, p: p}
  }
docs: // NewTxWriter creates a writer that applies a given procedures for all quads in stream.
  // If procedure is zero, Add operation will be used.