Module: DataMapper::Adapters::DataObjectsAdapter::SQL

Included in:
DataMapper::Adapters::DataObjectsAdapter
Defined in:
lib/dm-do-adapter/adapter.rb

Overview

This module is just for organization. The methods are included into the Adapter below.

Constant Summary collapse

IDENTIFIER_MAX_LENGTH =

:nodoc:

128

Instance Method Summary collapse

Instance Method Details

#property_to_column_name(property, qualify) ⇒ Object



315
316
317
318
319
320
321
322
323
324
325
326
# File 'lib/dm-do-adapter/adapter.rb', line 315

def property_to_column_name(property, qualify)
  column_name = ''

  case qualify
    when true
      column_name << "#{quote_name(property.model.storage_name(name))}."
    when String
      column_name << "#{quote_name(qualify)}."
  end

  column_name << quote_name(property.field)
end