Sha256: 04ad118d5b6324c1fba21add5bd01ed4227da2e79b7797eadfb496b2abea6aa1

Contents?: true

Size: 304 Bytes

Versions: 1

Compression:

Stored size: 304 Bytes

Contents

module Rein
  # This module contains methods for creating/dropping 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

1 entries across 1 versions & 1 rubygems

Version Path
rein-2.1.0 lib/rein/view.rb