Sha256: 3b723477a0ce68f319a92b54779174fe8c47fc3f777288931ad6905ea67ac592

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

module Rein
  # This module contains methods for defining views.
  module View
    def create_view(view_name, sql)
      sql = "CREATE VIEW #{view_name} AS #{sql}"
      execute(sql)
    end

    def drop_view(view_name)
      sql = "DROP VIEW #{view_name}"
      execute(sql)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rein-2.0.0 lib/rein/view.rb
rein-1.1.0 lib/rein/view.rb
rein-1.0.0 lib/rein/view.rb