Sha256: 366ede54ca41ce78c0f5fd2f9edc765b237c5579353242e066f4b7f0e60d1e54

Contents?: true

Size: 608 Bytes

Versions: 23

Compression:

Stored size: 608 Bytes

Contents

# Copyright 2021 Google LLC
#
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.

class EntityWithArrayTypes < ActiveRecord::Base
  # This entity has one attribute for each possible ARRAY data type in Cloud Spanner.
  # col_array_string ARRAY<STRING(MAX)>
  # col_array_int64 ARRAY<INT64>
  # col_array_float64 ARRAY<FLOAT64>
  # col_array_numeric ARRAY<NUMERIC>
  # col_array_bool ARRAY<BOOL>
  # col_array_bytes ARRAY<BYTES(MAX)>
  # col_array_date ARRAY<DATE>
  # col_array_timestamp ARRAY<TIMESTAMP>
  #
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
activerecord-spanner-adapter-2.0.0 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.8.0 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.6.3 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.6.2 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.6.1 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.6.0 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.5.1 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.5.0 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.4.4 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.4.3 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.4.2 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.4.1 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.4.0 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.3.1 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.2.2 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.2.1 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.2.0 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.1.0 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.0.1 examples/snippets/array-data-type/models/entity_with_array_types.rb
activerecord-spanner-adapter-1.0.0 examples/snippets/array-data-type/models/entity_with_array_types.rb