Module: EnhancedSQLite3::SupportsVirtualColumns::TableDefinition

Defined in:
lib/enhanced_sqlite3/supports_virtual_columns.rb

Instance Method Summary collapse

Instance Method Details

#new_column_definition(name, type, **options) ⇒ Object

:nodoc:



164
165
166
167
168
169
170
171
# File 'lib/enhanced_sqlite3/supports_virtual_columns.rb', line 164

def new_column_definition(name, type, **options) # :nodoc:
  case type
  when :virtual
    type = options[:type]
  end

  super
end

#valid_column_definition_optionsObject



173
174
175
# File 'lib/enhanced_sqlite3/supports_virtual_columns.rb', line 173

def valid_column_definition_options
  super + [:as, :type, :stored]
end