Sha256: a00bf9ab5d4fe543d55911e3d15d68ecb2cf1cce2e45435743de094fc8bf552e
Contents?: true
Size: 900 Bytes
Versions: 4
Compression:
Stored size: 900 Bytes
Contents
module ActiveRecord module ConnectionAdapters module Bigquery module SchemaStatements def tables information_schema.table_names end def views information_schema.view_names end def indexes(table_name) [] end def column_definitions(table_name) information_schema.table_fields(table_name) end def new_column_from_field(table_name, field) ConnectionAdapters::Column.new(field.name, nil, fetch_type_metadata(field.type), field.mode == 'NULLABLE') end def primary_keys(table_name) [] end def internal_string_options_for_primary_key {} end private def information_schema ActiveRecordBigqueryAdapter::Connection.information_schema(@config) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems