Skip to content

Conversation

@MedinsT
Copy link
Member

@MedinsT MedinsT commented Jun 5, 2019

No description provided.

@MedinsT MedinsT requested a review from ebeigarts June 5, 2019 10:59
end

def to_pgxlsx
formatter = Xport::Axlsx::Formatter.new(self)
Copy link
Member

@ebeigarts ebeigarts Jun 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be really great if this could be used with any formatter - axlsx, xlsxtream, csv, etc.

module PostgresCopy
    def write_body(formatter, worksheet)
       ....
    end

    def to_csv
       ....
    end
end

and then we could use

class UserExport < Xport::Export
  include Xport::Axlsx
  include Xport::PostgresCopy # can be used for csv and excel

Also test would be very nice addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants