lib/active_record/connection_adapters/rails_41.rb
# Returns an array of +SQLite3Column+ objects for the table specified by +table_name+.
Returns an array of +SQLite3Column+ objects for the table specified by +table_name+.
Returns an array of + SQLite3Column + objects for the table specified by + table_name + .
def columns(table_name) 
        schema = BigBroda::Table.get(@config[:project], @config[:database], table_name)
        schema["schema"]["fields"].map do |field|
          mode = field['mode'].present? && field['mode'] == "REQUIRED" ? false : true
          BigqueryColumn.new(field['name'], nil, field['type'], mode )
        end
      end
def columns ( table_name ) schema = BigBroda :: Table . get ( @config [ :project ] , @config [ :database ] , table_name ) schema [ "schema" ] [ "fields" ] . map do | field | mode = field [ 'mode' ] . present? && field [ 'mode' ] == "REQUIRED" ? false : true BigqueryColumn . new ( field [ 'name' ] , nil , field [ 'type' ] , mode ) end end
Returns an array of +SQLite3Column+ objects for the table specified by +table_name+.
Returns an array of + SQLite3Column + objects for the table specified by + table_name + .
#:nodoc: #column expects (name, default, sql_type = nil, null = true)
table_name
<not_specific>