class DbMeta::Oracle::Comment

Attributes

text[R]

Public Class Methods

find(args = {}) click to toggle source
# File lib/db_meta/oracle/types/comment.rb, line 6
def self.find(args = {})
  connection = Connection.instance.get
  cursor = connection.exec("select comments from user_tab_comments where table_type = '#{args[:type]}' and table_name = '#{args[:name]}'")
  while (row = cursor.fetch)
    @text = row[0]
  end
ensure
  connection.logoff
end