Class: OracleDB::QueryInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/oracledb/info_types.rb,
ext/oracledb/rboradb_info_types.c

Instance Method Summary collapse

Instance Method Details

#nameObject



179
180
181
# File 'lib/oracledb/info_types.rb', line 179

def name
  @name
end

#null_okObject



187
188
189
# File 'lib/oracledb/info_types.rb', line 187

def null_ok
  @null_ok
end

#to_sObject



191
192
193
194
195
196
197
# File 'lib/oracledb/info_types.rb', line 191

def to_s
  if @null_ok
    "#{self.name} #{self.type_info}"
  else
    "#{self.name} #{self.type_info} NOT NULL"
  end
end

#type_infoObject



183
184
185
# File 'lib/oracledb/info_types.rb', line 183

def type_info
  @type_info
end