Sha256: e453e93003003e4a0ca0e243f26458f62d472f1ddb29f3e9152767f58df6229b

Contents?: true

Size: 401 Bytes

Versions: 7

Compression:

Stored size: 401 Bytes

Contents

require "curses"


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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ppcurses-0.0.14 lib/ppcurses/actions/InsertSQLDataAction.rb
ppcurses-0.0.13 lib/ppcurses/actions/InsertSQLDataAction.rb
ppcurses-0.0.12 lib/ppcurses/actions/InsertSQLDataAction.rb
ppcurses-0.0.11 lib/ppcurses/actions/InsertSQLDataAction.rb
ppcurses-0.0.10 lib/ppcurses/actions/InsertSQLDataAction.rb
ppcurses-0.0.9 lib/ppcurses/actions/InsertSQLDataAction.rb
ppcurses-0.0.8 lib/ppcurses/actions/InsertSQLDataAction.rb