lib/base_repo.rb
# Get the data type of a table column.
#
# @param table_name [Symbol, Sequel::SQL::QualifiedIdentifier] the table name (or qualified name)
# @param column [symbol] the column name
# @return [symbol] the column's data type
Get the data type of a table column.
Get the data type of a table column .
def column_type(table_name, column)
    if table_name.is_a?(Symbol)
      DB_TABLE_COLS[table_name][column]
    else
      DB_AUDIT_COLS[table_name.table][column]
    end
  end
def column_type ( table_name , column ) if table_name . is_a? ( Symbol ) DB_TABLE_COLS [ table_name ] [ column ] else DB_AUDIT_COLS [ table_name . table ] [ column ] end end
Get the data type of a table column.
Get the data type of a table column .
the column's data type
the column ' s data type
symbol
table_name
the table name (or qualified name)
the table name ( or qualified name )
column
the column name
the column name