Sha256: baa313721e6e2d430129d916bb59882f1e40710359aa223563725df054deb69d

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

require 'ppcurses/actions/BaseAction.rb'

module PPCurses

  class InsertSQLDataAction < GetDataAction

    def initialize( actions, sql, db )
      super(actions)
      @sql = sql
      @db = db
    end

    def winHeight()
       return 7 + @actions.length
    end

    def afterActions()
      preparedSql = @sql
      @actions.each do |action|
        preparedSql = preparedSql.sub("%s", action.data)
      end

      self.promptToChangeData(preparedSql)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ppcurses-0.0.15 lib/ppcurses/actions/InsertSQLDataAction.rb