activerecord-spanner-adapter 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/CODEOWNERS +7 -0
- data/.github/sync-repo-settings.yaml +16 -0
- data/.github/workflows/acceptance-tests-on-emulator.yaml +45 -0
- data/.github/workflows/acceptance-tests-on-production.yaml +49 -0
- data/.github/workflows/ci.yaml +33 -0
- data/.github/workflows/nightly-acceptance-tests-on-emulator.yaml +52 -0
- data/.github/workflows/nightly-acceptance-tests-on-production.yaml +35 -0
- data/.github/workflows/nightly-unit-tests.yaml +40 -0
- data/.github/workflows/release-please-label.yml +25 -0
- data/.github/workflows/release-please.yml +39 -0
- data/.github/workflows/rubocop.yaml +31 -0
- data/.gitignore +67 -5
- data/.kokoro/populate-secrets.sh +77 -0
- data/.kokoro/release.cfg +33 -0
- data/.kokoro/release.sh +15 -0
- data/.kokoro/trampoline_v2.sh +489 -0
- data/.rubocop.yml +46 -0
- data/.toys/release.rb +18 -0
- data/.trampolinerc +48 -0
- data/.yardopts +11 -0
- data/CHANGELOG.md +55 -0
- data/CODE_OF_CONDUCT.md +40 -0
- data/CONTRIBUTING.md +79 -0
- data/Gemfile +9 -4
- data/LICENSE +6 -6
- data/README.md +66 -30
- data/Rakefile +79 -3
- data/SECURITY.md +7 -0
- data/acceptance/cases/associations/has_many_associations_test.rb +119 -0
- data/acceptance/cases/associations/has_many_through_associations_test.rb +63 -0
- data/acceptance/cases/associations/has_one_associations_test.rb +79 -0
- data/acceptance/cases/associations/has_one_through_associations_test.rb +98 -0
- data/acceptance/cases/interleaved_associations/has_many_associations_using_interleaved_test.rb +211 -0
- data/acceptance/cases/migration/change_schema_test.rb +433 -0
- data/acceptance/cases/migration/change_table_test.rb +115 -0
- data/acceptance/cases/migration/column_attributes_test.rb +122 -0
- data/acceptance/cases/migration/column_positioning_test.rb +48 -0
- data/acceptance/cases/migration/columns_test.rb +201 -0
- data/acceptance/cases/migration/command_recorder_test.rb +406 -0
- data/acceptance/cases/migration/create_join_table_test.rb +216 -0
- data/acceptance/cases/migration/ddl_batching_test.rb +80 -0
- data/acceptance/cases/migration/foreign_key_test.rb +297 -0
- data/acceptance/cases/migration/index_test.rb +211 -0
- data/acceptance/cases/migration/references_foreign_key_test.rb +259 -0
- data/acceptance/cases/migration/references_index_test.rb +135 -0
- data/acceptance/cases/migration/references_statements_test.rb +166 -0
- data/acceptance/cases/migration/rename_column_test.rb +96 -0
- data/acceptance/cases/models/calculation_query_test.rb +128 -0
- data/acceptance/cases/models/generated_column_test.rb +126 -0
- data/acceptance/cases/models/mutation_test.rb +122 -0
- data/acceptance/cases/models/query_test.rb +171 -0
- data/acceptance/cases/sessions/session_not_found_test.rb +121 -0
- data/acceptance/cases/transactions/optimistic_locking_test.rb +141 -0
- data/acceptance/cases/transactions/read_only_transactions_test.rb +130 -0
- data/acceptance/cases/transactions/read_write_transactions_test.rb +248 -0
- data/acceptance/cases/type/all_types_test.rb +172 -0
- data/acceptance/cases/type/binary_test.rb +59 -0
- data/acceptance/cases/type/boolean_test.rb +31 -0
- data/acceptance/cases/type/date_test.rb +32 -0
- data/acceptance/cases/type/date_time_test.rb +30 -0
- data/acceptance/cases/type/float_test.rb +27 -0
- data/acceptance/cases/type/integer_test.rb +44 -0
- data/acceptance/cases/type/json_test.rb +34 -0
- data/acceptance/cases/type/numeric_test.rb +27 -0
- data/acceptance/cases/type/string_test.rb +79 -0
- data/acceptance/cases/type/text_test.rb +30 -0
- data/acceptance/cases/type/time_test.rb +87 -0
- data/acceptance/models/account.rb +13 -0
- data/acceptance/models/address.rb +9 -0
- data/acceptance/models/album.rb +12 -0
- data/acceptance/models/all_types.rb +8 -0
- data/acceptance/models/author.rb +11 -0
- data/acceptance/models/club.rb +12 -0
- data/acceptance/models/comment.rb +9 -0
- data/acceptance/models/customer.rb +9 -0
- data/acceptance/models/department.rb +9 -0
- data/acceptance/models/firm.rb +10 -0
- data/acceptance/models/member.rb +13 -0
- data/acceptance/models/member_type.rb +9 -0
- data/acceptance/models/membership.rb +10 -0
- data/acceptance/models/organization.rb +9 -0
- data/acceptance/models/post.rb +10 -0
- data/acceptance/models/singer.rb +10 -0
- data/acceptance/models/track.rb +20 -0
- data/acceptance/models/transaction.rb +9 -0
- data/acceptance/schema/schema.rb +147 -0
- data/acceptance/test_helper.rb +261 -0
- data/activerecord-spanner-adapter.gemspec +32 -17
- data/assets/solidus-db.png +0 -0
- data/benchmarks/README.md +17 -0
- data/benchmarks/Rakefile +14 -0
- data/benchmarks/application.rb +308 -0
- data/benchmarks/config/database.yml +8 -0
- data/benchmarks/config/environment.rb +12 -0
- data/benchmarks/db/migrate/01_create_tables.rb +25 -0
- data/benchmarks/db/schema.rb +29 -0
- data/benchmarks/models/album.rb +9 -0
- data/benchmarks/models/singer.rb +9 -0
- data/bin/console +6 -7
- data/examples/rails/README.md +262 -0
- data/examples/snippets/README.md +29 -0
- data/examples/snippets/Rakefile +57 -0
- data/examples/snippets/array-data-type/README.md +45 -0
- data/examples/snippets/array-data-type/Rakefile +13 -0
- data/examples/snippets/array-data-type/application.rb +45 -0
- data/examples/snippets/array-data-type/config/database.yml +8 -0
- data/examples/snippets/array-data-type/db/migrate/01_create_tables.rb +24 -0
- data/examples/snippets/array-data-type/db/schema.rb +26 -0
- data/examples/snippets/array-data-type/db/seeds.rb +5 -0
- data/examples/snippets/array-data-type/models/entity_with_array_types.rb +18 -0
- data/examples/snippets/bin/create_emulator_instance.rb +18 -0
- data/examples/snippets/bulk-insert/README.md +21 -0
- data/examples/snippets/bulk-insert/Rakefile +13 -0
- data/examples/snippets/bulk-insert/application.rb +64 -0
- data/examples/snippets/bulk-insert/config/database.yml +8 -0
- data/examples/snippets/bulk-insert/db/migrate/01_create_tables.rb +21 -0
- data/examples/snippets/bulk-insert/db/schema.rb +26 -0
- data/examples/snippets/bulk-insert/db/seeds.rb +5 -0
- data/examples/snippets/bulk-insert/models/album.rb +9 -0
- data/examples/snippets/bulk-insert/models/singer.rb +9 -0
- data/examples/snippets/commit-timestamp/README.md +18 -0
- data/examples/snippets/commit-timestamp/Rakefile +13 -0
- data/examples/snippets/commit-timestamp/application.rb +53 -0
- data/examples/snippets/commit-timestamp/config/database.yml +8 -0
- data/examples/snippets/commit-timestamp/db/migrate/01_create_tables.rb +26 -0
- data/examples/snippets/commit-timestamp/db/schema.rb +29 -0
- data/examples/snippets/commit-timestamp/db/seeds.rb +5 -0
- data/examples/snippets/commit-timestamp/models/album.rb +9 -0
- data/examples/snippets/commit-timestamp/models/singer.rb +9 -0
- data/examples/snippets/config/environment.rb +21 -0
- data/examples/snippets/create-records/README.md +12 -0
- data/examples/snippets/create-records/Rakefile +13 -0
- data/examples/snippets/create-records/application.rb +42 -0
- data/examples/snippets/create-records/config/database.yml +8 -0
- data/examples/snippets/create-records/db/migrate/01_create_tables.rb +21 -0
- data/examples/snippets/create-records/db/schema.rb +26 -0
- data/examples/snippets/create-records/db/seeds.rb +5 -0
- data/examples/snippets/create-records/models/album.rb +9 -0
- data/examples/snippets/create-records/models/singer.rb +9 -0
- data/examples/snippets/date-data-type/README.md +19 -0
- data/examples/snippets/date-data-type/Rakefile +13 -0
- data/examples/snippets/date-data-type/application.rb +35 -0
- data/examples/snippets/date-data-type/config/database.yml +8 -0
- data/examples/snippets/date-data-type/db/migrate/01_create_tables.rb +20 -0
- data/examples/snippets/date-data-type/db/schema.rb +21 -0
- data/examples/snippets/date-data-type/db/seeds.rb +16 -0
- data/examples/snippets/date-data-type/models/singer.rb +8 -0
- data/examples/snippets/generated-column/README.md +41 -0
- data/examples/snippets/generated-column/Rakefile +13 -0
- data/examples/snippets/generated-column/application.rb +37 -0
- data/examples/snippets/generated-column/config/database.yml +8 -0
- data/examples/snippets/generated-column/db/migrate/01_create_tables.rb +23 -0
- data/examples/snippets/generated-column/db/schema.rb +21 -0
- data/examples/snippets/generated-column/db/seeds.rb +18 -0
- data/examples/snippets/generated-column/models/singer.rb +8 -0
- data/examples/snippets/hints/README.md +19 -0
- data/examples/snippets/hints/Rakefile +13 -0
- data/examples/snippets/hints/application.rb +47 -0
- data/examples/snippets/hints/config/database.yml +8 -0
- data/examples/snippets/hints/db/migrate/01_create_tables.rb +23 -0
- data/examples/snippets/hints/db/schema.rb +28 -0
- data/examples/snippets/hints/db/seeds.rb +29 -0
- data/examples/snippets/hints/models/album.rb +9 -0
- data/examples/snippets/hints/models/singer.rb +9 -0
- data/examples/snippets/migrations/README.md +43 -0
- data/examples/snippets/migrations/Rakefile +13 -0
- data/examples/snippets/migrations/application.rb +26 -0
- data/examples/snippets/migrations/config/database.yml +8 -0
- data/examples/snippets/migrations/db/migrate/01_create_tables.rb +28 -0
- data/examples/snippets/migrations/db/schema.rb +33 -0
- data/examples/snippets/migrations/db/seeds.rb +5 -0
- data/examples/snippets/migrations/models/album.rb +10 -0
- data/examples/snippets/migrations/models/singer.rb +10 -0
- data/examples/snippets/migrations/models/track.rb +9 -0
- data/examples/snippets/mutations/README.md +34 -0
- data/examples/snippets/mutations/Rakefile +13 -0
- data/examples/snippets/mutations/application.rb +47 -0
- data/examples/snippets/mutations/config/database.yml +8 -0
- data/examples/snippets/mutations/db/migrate/01_create_tables.rb +22 -0
- data/examples/snippets/mutations/db/schema.rb +27 -0
- data/examples/snippets/mutations/db/seeds.rb +25 -0
- data/examples/snippets/mutations/models/album.rb +9 -0
- data/examples/snippets/mutations/models/singer.rb +9 -0
- data/examples/snippets/optimistic-locking/README.md +12 -0
- data/examples/snippets/optimistic-locking/Rakefile +13 -0
- data/examples/snippets/optimistic-locking/application.rb +48 -0
- data/examples/snippets/optimistic-locking/config/database.yml +8 -0
- data/examples/snippets/optimistic-locking/db/migrate/01_create_tables.rb +26 -0
- data/examples/snippets/optimistic-locking/db/schema.rb +29 -0
- data/examples/snippets/optimistic-locking/db/seeds.rb +25 -0
- data/examples/snippets/optimistic-locking/models/album.rb +9 -0
- data/examples/snippets/optimistic-locking/models/singer.rb +9 -0
- data/examples/snippets/partitioned-dml/README.md +16 -0
- data/examples/snippets/partitioned-dml/Rakefile +13 -0
- data/examples/snippets/partitioned-dml/application.rb +48 -0
- data/examples/snippets/partitioned-dml/config/database.yml +8 -0
- data/examples/snippets/partitioned-dml/db/migrate/01_create_tables.rb +21 -0
- data/examples/snippets/partitioned-dml/db/schema.rb +26 -0
- data/examples/snippets/partitioned-dml/db/seeds.rb +29 -0
- data/examples/snippets/partitioned-dml/models/album.rb +9 -0
- data/examples/snippets/partitioned-dml/models/singer.rb +9 -0
- data/examples/snippets/quickstart/README.md +26 -0
- data/examples/snippets/quickstart/Rakefile +13 -0
- data/examples/snippets/quickstart/application.rb +51 -0
- data/examples/snippets/quickstart/config/database.yml +8 -0
- data/examples/snippets/quickstart/db/migrate/01_create_tables.rb +21 -0
- data/examples/snippets/quickstart/db/schema.rb +26 -0
- data/examples/snippets/quickstart/db/seeds.rb +24 -0
- data/examples/snippets/quickstart/models/album.rb +9 -0
- data/examples/snippets/quickstart/models/singer.rb +9 -0
- data/examples/snippets/read-only-transactions/README.md +13 -0
- data/examples/snippets/read-only-transactions/Rakefile +13 -0
- data/examples/snippets/read-only-transactions/application.rb +77 -0
- data/examples/snippets/read-only-transactions/config/database.yml +8 -0
- data/examples/snippets/read-only-transactions/db/migrate/01_create_tables.rb +21 -0
- data/examples/snippets/read-only-transactions/db/schema.rb +26 -0
- data/examples/snippets/read-only-transactions/db/seeds.rb +24 -0
- data/examples/snippets/read-only-transactions/models/album.rb +9 -0
- data/examples/snippets/read-only-transactions/models/singer.rb +9 -0
- data/examples/snippets/read-write-transactions/README.md +12 -0
- data/examples/snippets/read-write-transactions/Rakefile +13 -0
- data/examples/snippets/read-write-transactions/application.rb +39 -0
- data/examples/snippets/read-write-transactions/config/database.yml +8 -0
- data/examples/snippets/read-write-transactions/db/migrate/01_create_tables.rb +22 -0
- data/examples/snippets/read-write-transactions/db/schema.rb +27 -0
- data/examples/snippets/read-write-transactions/db/seeds.rb +25 -0
- data/examples/snippets/read-write-transactions/models/album.rb +9 -0
- data/examples/snippets/read-write-transactions/models/singer.rb +9 -0
- data/examples/snippets/stale-reads/README.md +27 -0
- data/examples/snippets/stale-reads/Rakefile +13 -0
- data/examples/snippets/stale-reads/application.rb +63 -0
- data/examples/snippets/stale-reads/config/database.yml +8 -0
- data/examples/snippets/stale-reads/db/migrate/01_create_tables.rb +21 -0
- data/examples/snippets/stale-reads/db/schema.rb +26 -0
- data/examples/snippets/stale-reads/db/seeds.rb +24 -0
- data/examples/snippets/stale-reads/models/album.rb +9 -0
- data/examples/snippets/stale-reads/models/singer.rb +9 -0
- data/examples/snippets/timestamp-data-type/README.md +17 -0
- data/examples/snippets/timestamp-data-type/Rakefile +13 -0
- data/examples/snippets/timestamp-data-type/application.rb +42 -0
- data/examples/snippets/timestamp-data-type/config/database.yml +8 -0
- data/examples/snippets/timestamp-data-type/db/migrate/01_create_tables.rb +21 -0
- data/examples/snippets/timestamp-data-type/db/schema.rb +21 -0
- data/examples/snippets/timestamp-data-type/db/seeds.rb +6 -0
- data/examples/snippets/timestamp-data-type/models/meeting.rb +19 -0
- data/examples/solidus/README.md +172 -0
- data/lib/active_record/connection_adapters/spanner/database_statements.rb +244 -266
- data/lib/active_record/connection_adapters/spanner/quoting.rb +42 -50
- data/lib/active_record/connection_adapters/spanner/schema_cache.rb +43 -0
- data/lib/active_record/connection_adapters/spanner/schema_creation.rb +125 -9
- data/lib/active_record/connection_adapters/spanner/schema_definitions.rb +122 -0
- data/lib/active_record/connection_adapters/spanner/schema_dumper.rb +19 -0
- data/lib/active_record/connection_adapters/spanner/schema_statements.rb +553 -139
- data/lib/active_record/connection_adapters/spanner/type_metadata.rb +37 -0
- data/lib/active_record/connection_adapters/spanner_adapter.rb +185 -78
- data/lib/active_record/tasks/spanner_database_tasks.rb +74 -0
- data/lib/active_record/type/spanner/array.rb +32 -0
- data/lib/active_record/type/spanner/bytes.rb +26 -0
- data/lib/active_record/type/spanner/spanner_active_record_converter.rb +33 -0
- data/lib/active_record/type/spanner/time.rb +37 -0
- data/lib/activerecord-spanner-adapter.rb +23 -0
- data/lib/activerecord_spanner_adapter/base.rb +238 -0
- data/lib/activerecord_spanner_adapter/connection.rb +350 -0
- data/lib/activerecord_spanner_adapter/errors.rb +13 -0
- data/lib/activerecord_spanner_adapter/foreign_key.rb +29 -0
- data/lib/activerecord_spanner_adapter/index/column.rb +38 -0
- data/lib/activerecord_spanner_adapter/index.rb +80 -0
- data/lib/activerecord_spanner_adapter/information_schema.rb +262 -0
- data/lib/activerecord_spanner_adapter/primary_key.rb +31 -0
- data/lib/activerecord_spanner_adapter/table/column.rb +59 -0
- data/lib/activerecord_spanner_adapter/table.rb +61 -0
- data/lib/activerecord_spanner_adapter/transaction.rb +154 -0
- data/lib/activerecord_spanner_adapter/version.rb +9 -0
- data/lib/arel/visitors/spanner.rb +111 -0
- data/lib/spanner_client_ext.rb +107 -0
- data/renovate.json +5 -0
- metadata +405 -34
- data/.travis.yml +0 -5
- data/lib/active_record/connection_adapters/spanner/client.rb +0 -190
- data/lib/active_record/connection_adapters/spanner.rb +0 -10
- data/lib/activerecord-spanner-adapter/version.rb +0 -3
metadata
CHANGED
@@ -1,126 +1,498 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-spanner-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Google LLC
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: google-cloud-spanner
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.10'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 6.1.4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 6.1.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: autotest-suffix
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
type: :
|
47
|
+
version: '1.1'
|
48
|
+
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: google-style
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.24.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.24.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.10'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.10'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest-autotest
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.0'
|
62
104
|
type: :development
|
63
105
|
prerelease: false
|
64
106
|
version_requirements: !ruby/object:Gem::Requirement
|
65
107
|
requirements:
|
66
108
|
- - "~>"
|
67
109
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
110
|
+
version: '1.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: minitest-focus
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.1'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.1'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: minitest-rg
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '5.2'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '5.2'
|
69
139
|
- !ruby/object:Gem::Dependency
|
70
140
|
name: rake
|
71
141
|
requirement: !ruby/object:Gem::Requirement
|
72
142
|
requirements:
|
73
143
|
- - "~>"
|
74
144
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
145
|
+
version: '13.0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '13.0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: redcarpet
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3.0'
|
76
160
|
type: :development
|
77
161
|
prerelease: false
|
78
162
|
version_requirements: !ruby/object:Gem::Requirement
|
79
163
|
requirements:
|
80
164
|
- - "~>"
|
81
165
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
166
|
+
version: '3.0'
|
83
167
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
168
|
+
name: simplecov
|
85
169
|
requirement: !ruby/object:Gem::Requirement
|
86
170
|
requirements:
|
87
171
|
- - "~>"
|
88
172
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
173
|
+
version: '0.9'
|
90
174
|
type: :development
|
91
175
|
prerelease: false
|
92
176
|
version_requirements: !ruby/object:Gem::Requirement
|
93
177
|
requirements:
|
94
178
|
- - "~>"
|
95
179
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
97
|
-
|
98
|
-
|
180
|
+
version: '0.9'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: yard
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0.9'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0.9'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: yard-doctest
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 0.1.13
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 0.1.13
|
209
|
+
description: Rails ActiveRecord connector for Google Spanner Database
|
99
210
|
email:
|
100
|
-
-
|
211
|
+
- cloud-spanner-developers@googlegroups.com
|
101
212
|
executables: []
|
102
213
|
extensions: []
|
103
214
|
extra_rdoc_files: []
|
104
215
|
files:
|
216
|
+
- ".github/CODEOWNERS"
|
217
|
+
- ".github/sync-repo-settings.yaml"
|
218
|
+
- ".github/workflows/acceptance-tests-on-emulator.yaml"
|
219
|
+
- ".github/workflows/acceptance-tests-on-production.yaml"
|
220
|
+
- ".github/workflows/ci.yaml"
|
221
|
+
- ".github/workflows/nightly-acceptance-tests-on-emulator.yaml"
|
222
|
+
- ".github/workflows/nightly-acceptance-tests-on-production.yaml"
|
223
|
+
- ".github/workflows/nightly-unit-tests.yaml"
|
224
|
+
- ".github/workflows/release-please-label.yml"
|
225
|
+
- ".github/workflows/release-please.yml"
|
226
|
+
- ".github/workflows/rubocop.yaml"
|
105
227
|
- ".gitignore"
|
106
|
-
- ".
|
228
|
+
- ".kokoro/populate-secrets.sh"
|
229
|
+
- ".kokoro/release.cfg"
|
230
|
+
- ".kokoro/release.sh"
|
231
|
+
- ".kokoro/trampoline_v2.sh"
|
232
|
+
- ".rubocop.yml"
|
233
|
+
- ".toys/release.rb"
|
234
|
+
- ".trampolinerc"
|
235
|
+
- ".yardopts"
|
236
|
+
- CHANGELOG.md
|
237
|
+
- CODE_OF_CONDUCT.md
|
238
|
+
- CONTRIBUTING.md
|
107
239
|
- Gemfile
|
108
240
|
- LICENSE
|
109
241
|
- README.md
|
110
242
|
- Rakefile
|
243
|
+
- SECURITY.md
|
244
|
+
- acceptance/cases/associations/has_many_associations_test.rb
|
245
|
+
- acceptance/cases/associations/has_many_through_associations_test.rb
|
246
|
+
- acceptance/cases/associations/has_one_associations_test.rb
|
247
|
+
- acceptance/cases/associations/has_one_through_associations_test.rb
|
248
|
+
- acceptance/cases/interleaved_associations/has_many_associations_using_interleaved_test.rb
|
249
|
+
- acceptance/cases/migration/change_schema_test.rb
|
250
|
+
- acceptance/cases/migration/change_table_test.rb
|
251
|
+
- acceptance/cases/migration/column_attributes_test.rb
|
252
|
+
- acceptance/cases/migration/column_positioning_test.rb
|
253
|
+
- acceptance/cases/migration/columns_test.rb
|
254
|
+
- acceptance/cases/migration/command_recorder_test.rb
|
255
|
+
- acceptance/cases/migration/create_join_table_test.rb
|
256
|
+
- acceptance/cases/migration/ddl_batching_test.rb
|
257
|
+
- acceptance/cases/migration/foreign_key_test.rb
|
258
|
+
- acceptance/cases/migration/index_test.rb
|
259
|
+
- acceptance/cases/migration/references_foreign_key_test.rb
|
260
|
+
- acceptance/cases/migration/references_index_test.rb
|
261
|
+
- acceptance/cases/migration/references_statements_test.rb
|
262
|
+
- acceptance/cases/migration/rename_column_test.rb
|
263
|
+
- acceptance/cases/models/calculation_query_test.rb
|
264
|
+
- acceptance/cases/models/generated_column_test.rb
|
265
|
+
- acceptance/cases/models/mutation_test.rb
|
266
|
+
- acceptance/cases/models/query_test.rb
|
267
|
+
- acceptance/cases/sessions/session_not_found_test.rb
|
268
|
+
- acceptance/cases/transactions/optimistic_locking_test.rb
|
269
|
+
- acceptance/cases/transactions/read_only_transactions_test.rb
|
270
|
+
- acceptance/cases/transactions/read_write_transactions_test.rb
|
271
|
+
- acceptance/cases/type/all_types_test.rb
|
272
|
+
- acceptance/cases/type/binary_test.rb
|
273
|
+
- acceptance/cases/type/boolean_test.rb
|
274
|
+
- acceptance/cases/type/date_test.rb
|
275
|
+
- acceptance/cases/type/date_time_test.rb
|
276
|
+
- acceptance/cases/type/float_test.rb
|
277
|
+
- acceptance/cases/type/integer_test.rb
|
278
|
+
- acceptance/cases/type/json_test.rb
|
279
|
+
- acceptance/cases/type/numeric_test.rb
|
280
|
+
- acceptance/cases/type/string_test.rb
|
281
|
+
- acceptance/cases/type/text_test.rb
|
282
|
+
- acceptance/cases/type/time_test.rb
|
283
|
+
- acceptance/models/account.rb
|
284
|
+
- acceptance/models/address.rb
|
285
|
+
- acceptance/models/album.rb
|
286
|
+
- acceptance/models/all_types.rb
|
287
|
+
- acceptance/models/author.rb
|
288
|
+
- acceptance/models/club.rb
|
289
|
+
- acceptance/models/comment.rb
|
290
|
+
- acceptance/models/customer.rb
|
291
|
+
- acceptance/models/department.rb
|
292
|
+
- acceptance/models/firm.rb
|
293
|
+
- acceptance/models/member.rb
|
294
|
+
- acceptance/models/member_type.rb
|
295
|
+
- acceptance/models/membership.rb
|
296
|
+
- acceptance/models/organization.rb
|
297
|
+
- acceptance/models/post.rb
|
298
|
+
- acceptance/models/singer.rb
|
299
|
+
- acceptance/models/track.rb
|
300
|
+
- acceptance/models/transaction.rb
|
301
|
+
- acceptance/schema/schema.rb
|
302
|
+
- acceptance/test_helper.rb
|
111
303
|
- activerecord-spanner-adapter.gemspec
|
304
|
+
- assets/solidus-db.png
|
305
|
+
- benchmarks/README.md
|
306
|
+
- benchmarks/Rakefile
|
307
|
+
- benchmarks/application.rb
|
308
|
+
- benchmarks/config/database.yml
|
309
|
+
- benchmarks/config/environment.rb
|
310
|
+
- benchmarks/db/migrate/01_create_tables.rb
|
311
|
+
- benchmarks/db/schema.rb
|
312
|
+
- benchmarks/models/album.rb
|
313
|
+
- benchmarks/models/singer.rb
|
112
314
|
- bin/console
|
113
315
|
- bin/setup
|
114
|
-
-
|
115
|
-
-
|
316
|
+
- examples/rails/README.md
|
317
|
+
- examples/snippets/README.md
|
318
|
+
- examples/snippets/Rakefile
|
319
|
+
- examples/snippets/array-data-type/README.md
|
320
|
+
- examples/snippets/array-data-type/Rakefile
|
321
|
+
- examples/snippets/array-data-type/application.rb
|
322
|
+
- examples/snippets/array-data-type/config/database.yml
|
323
|
+
- examples/snippets/array-data-type/db/migrate/01_create_tables.rb
|
324
|
+
- examples/snippets/array-data-type/db/schema.rb
|
325
|
+
- examples/snippets/array-data-type/db/seeds.rb
|
326
|
+
- examples/snippets/array-data-type/models/entity_with_array_types.rb
|
327
|
+
- examples/snippets/bin/create_emulator_instance.rb
|
328
|
+
- examples/snippets/bulk-insert/README.md
|
329
|
+
- examples/snippets/bulk-insert/Rakefile
|
330
|
+
- examples/snippets/bulk-insert/application.rb
|
331
|
+
- examples/snippets/bulk-insert/config/database.yml
|
332
|
+
- examples/snippets/bulk-insert/db/migrate/01_create_tables.rb
|
333
|
+
- examples/snippets/bulk-insert/db/schema.rb
|
334
|
+
- examples/snippets/bulk-insert/db/seeds.rb
|
335
|
+
- examples/snippets/bulk-insert/models/album.rb
|
336
|
+
- examples/snippets/bulk-insert/models/singer.rb
|
337
|
+
- examples/snippets/commit-timestamp/README.md
|
338
|
+
- examples/snippets/commit-timestamp/Rakefile
|
339
|
+
- examples/snippets/commit-timestamp/application.rb
|
340
|
+
- examples/snippets/commit-timestamp/config/database.yml
|
341
|
+
- examples/snippets/commit-timestamp/db/migrate/01_create_tables.rb
|
342
|
+
- examples/snippets/commit-timestamp/db/schema.rb
|
343
|
+
- examples/snippets/commit-timestamp/db/seeds.rb
|
344
|
+
- examples/snippets/commit-timestamp/models/album.rb
|
345
|
+
- examples/snippets/commit-timestamp/models/singer.rb
|
346
|
+
- examples/snippets/config/environment.rb
|
347
|
+
- examples/snippets/create-records/README.md
|
348
|
+
- examples/snippets/create-records/Rakefile
|
349
|
+
- examples/snippets/create-records/application.rb
|
350
|
+
- examples/snippets/create-records/config/database.yml
|
351
|
+
- examples/snippets/create-records/db/migrate/01_create_tables.rb
|
352
|
+
- examples/snippets/create-records/db/schema.rb
|
353
|
+
- examples/snippets/create-records/db/seeds.rb
|
354
|
+
- examples/snippets/create-records/models/album.rb
|
355
|
+
- examples/snippets/create-records/models/singer.rb
|
356
|
+
- examples/snippets/date-data-type/README.md
|
357
|
+
- examples/snippets/date-data-type/Rakefile
|
358
|
+
- examples/snippets/date-data-type/application.rb
|
359
|
+
- examples/snippets/date-data-type/config/database.yml
|
360
|
+
- examples/snippets/date-data-type/db/migrate/01_create_tables.rb
|
361
|
+
- examples/snippets/date-data-type/db/schema.rb
|
362
|
+
- examples/snippets/date-data-type/db/seeds.rb
|
363
|
+
- examples/snippets/date-data-type/models/singer.rb
|
364
|
+
- examples/snippets/generated-column/README.md
|
365
|
+
- examples/snippets/generated-column/Rakefile
|
366
|
+
- examples/snippets/generated-column/application.rb
|
367
|
+
- examples/snippets/generated-column/config/database.yml
|
368
|
+
- examples/snippets/generated-column/db/migrate/01_create_tables.rb
|
369
|
+
- examples/snippets/generated-column/db/schema.rb
|
370
|
+
- examples/snippets/generated-column/db/seeds.rb
|
371
|
+
- examples/snippets/generated-column/models/singer.rb
|
372
|
+
- examples/snippets/hints/README.md
|
373
|
+
- examples/snippets/hints/Rakefile
|
374
|
+
- examples/snippets/hints/application.rb
|
375
|
+
- examples/snippets/hints/config/database.yml
|
376
|
+
- examples/snippets/hints/db/migrate/01_create_tables.rb
|
377
|
+
- examples/snippets/hints/db/schema.rb
|
378
|
+
- examples/snippets/hints/db/seeds.rb
|
379
|
+
- examples/snippets/hints/models/album.rb
|
380
|
+
- examples/snippets/hints/models/singer.rb
|
381
|
+
- examples/snippets/migrations/README.md
|
382
|
+
- examples/snippets/migrations/Rakefile
|
383
|
+
- examples/snippets/migrations/application.rb
|
384
|
+
- examples/snippets/migrations/config/database.yml
|
385
|
+
- examples/snippets/migrations/db/migrate/01_create_tables.rb
|
386
|
+
- examples/snippets/migrations/db/schema.rb
|
387
|
+
- examples/snippets/migrations/db/seeds.rb
|
388
|
+
- examples/snippets/migrations/models/album.rb
|
389
|
+
- examples/snippets/migrations/models/singer.rb
|
390
|
+
- examples/snippets/migrations/models/track.rb
|
391
|
+
- examples/snippets/mutations/README.md
|
392
|
+
- examples/snippets/mutations/Rakefile
|
393
|
+
- examples/snippets/mutations/application.rb
|
394
|
+
- examples/snippets/mutations/config/database.yml
|
395
|
+
- examples/snippets/mutations/db/migrate/01_create_tables.rb
|
396
|
+
- examples/snippets/mutations/db/schema.rb
|
397
|
+
- examples/snippets/mutations/db/seeds.rb
|
398
|
+
- examples/snippets/mutations/models/album.rb
|
399
|
+
- examples/snippets/mutations/models/singer.rb
|
400
|
+
- examples/snippets/optimistic-locking/README.md
|
401
|
+
- examples/snippets/optimistic-locking/Rakefile
|
402
|
+
- examples/snippets/optimistic-locking/application.rb
|
403
|
+
- examples/snippets/optimistic-locking/config/database.yml
|
404
|
+
- examples/snippets/optimistic-locking/db/migrate/01_create_tables.rb
|
405
|
+
- examples/snippets/optimistic-locking/db/schema.rb
|
406
|
+
- examples/snippets/optimistic-locking/db/seeds.rb
|
407
|
+
- examples/snippets/optimistic-locking/models/album.rb
|
408
|
+
- examples/snippets/optimistic-locking/models/singer.rb
|
409
|
+
- examples/snippets/partitioned-dml/README.md
|
410
|
+
- examples/snippets/partitioned-dml/Rakefile
|
411
|
+
- examples/snippets/partitioned-dml/application.rb
|
412
|
+
- examples/snippets/partitioned-dml/config/database.yml
|
413
|
+
- examples/snippets/partitioned-dml/db/migrate/01_create_tables.rb
|
414
|
+
- examples/snippets/partitioned-dml/db/schema.rb
|
415
|
+
- examples/snippets/partitioned-dml/db/seeds.rb
|
416
|
+
- examples/snippets/partitioned-dml/models/album.rb
|
417
|
+
- examples/snippets/partitioned-dml/models/singer.rb
|
418
|
+
- examples/snippets/quickstart/README.md
|
419
|
+
- examples/snippets/quickstart/Rakefile
|
420
|
+
- examples/snippets/quickstart/application.rb
|
421
|
+
- examples/snippets/quickstart/config/database.yml
|
422
|
+
- examples/snippets/quickstart/db/migrate/01_create_tables.rb
|
423
|
+
- examples/snippets/quickstart/db/schema.rb
|
424
|
+
- examples/snippets/quickstart/db/seeds.rb
|
425
|
+
- examples/snippets/quickstart/models/album.rb
|
426
|
+
- examples/snippets/quickstart/models/singer.rb
|
427
|
+
- examples/snippets/read-only-transactions/README.md
|
428
|
+
- examples/snippets/read-only-transactions/Rakefile
|
429
|
+
- examples/snippets/read-only-transactions/application.rb
|
430
|
+
- examples/snippets/read-only-transactions/config/database.yml
|
431
|
+
- examples/snippets/read-only-transactions/db/migrate/01_create_tables.rb
|
432
|
+
- examples/snippets/read-only-transactions/db/schema.rb
|
433
|
+
- examples/snippets/read-only-transactions/db/seeds.rb
|
434
|
+
- examples/snippets/read-only-transactions/models/album.rb
|
435
|
+
- examples/snippets/read-only-transactions/models/singer.rb
|
436
|
+
- examples/snippets/read-write-transactions/README.md
|
437
|
+
- examples/snippets/read-write-transactions/Rakefile
|
438
|
+
- examples/snippets/read-write-transactions/application.rb
|
439
|
+
- examples/snippets/read-write-transactions/config/database.yml
|
440
|
+
- examples/snippets/read-write-transactions/db/migrate/01_create_tables.rb
|
441
|
+
- examples/snippets/read-write-transactions/db/schema.rb
|
442
|
+
- examples/snippets/read-write-transactions/db/seeds.rb
|
443
|
+
- examples/snippets/read-write-transactions/models/album.rb
|
444
|
+
- examples/snippets/read-write-transactions/models/singer.rb
|
445
|
+
- examples/snippets/stale-reads/README.md
|
446
|
+
- examples/snippets/stale-reads/Rakefile
|
447
|
+
- examples/snippets/stale-reads/application.rb
|
448
|
+
- examples/snippets/stale-reads/config/database.yml
|
449
|
+
- examples/snippets/stale-reads/db/migrate/01_create_tables.rb
|
450
|
+
- examples/snippets/stale-reads/db/schema.rb
|
451
|
+
- examples/snippets/stale-reads/db/seeds.rb
|
452
|
+
- examples/snippets/stale-reads/models/album.rb
|
453
|
+
- examples/snippets/stale-reads/models/singer.rb
|
454
|
+
- examples/snippets/timestamp-data-type/README.md
|
455
|
+
- examples/snippets/timestamp-data-type/Rakefile
|
456
|
+
- examples/snippets/timestamp-data-type/application.rb
|
457
|
+
- examples/snippets/timestamp-data-type/config/database.yml
|
458
|
+
- examples/snippets/timestamp-data-type/db/migrate/01_create_tables.rb
|
459
|
+
- examples/snippets/timestamp-data-type/db/schema.rb
|
460
|
+
- examples/snippets/timestamp-data-type/db/seeds.rb
|
461
|
+
- examples/snippets/timestamp-data-type/models/meeting.rb
|
462
|
+
- examples/solidus/README.md
|
116
463
|
- lib/active_record/connection_adapters/spanner/database_statements.rb
|
117
464
|
- lib/active_record/connection_adapters/spanner/quoting.rb
|
465
|
+
- lib/active_record/connection_adapters/spanner/schema_cache.rb
|
118
466
|
- lib/active_record/connection_adapters/spanner/schema_creation.rb
|
467
|
+
- lib/active_record/connection_adapters/spanner/schema_definitions.rb
|
468
|
+
- lib/active_record/connection_adapters/spanner/schema_dumper.rb
|
119
469
|
- lib/active_record/connection_adapters/spanner/schema_statements.rb
|
470
|
+
- lib/active_record/connection_adapters/spanner/type_metadata.rb
|
120
471
|
- lib/active_record/connection_adapters/spanner_adapter.rb
|
121
|
-
- lib/
|
122
|
-
|
123
|
-
|
472
|
+
- lib/active_record/tasks/spanner_database_tasks.rb
|
473
|
+
- lib/active_record/type/spanner/array.rb
|
474
|
+
- lib/active_record/type/spanner/bytes.rb
|
475
|
+
- lib/active_record/type/spanner/spanner_active_record_converter.rb
|
476
|
+
- lib/active_record/type/spanner/time.rb
|
477
|
+
- lib/activerecord-spanner-adapter.rb
|
478
|
+
- lib/activerecord_spanner_adapter/base.rb
|
479
|
+
- lib/activerecord_spanner_adapter/connection.rb
|
480
|
+
- lib/activerecord_spanner_adapter/errors.rb
|
481
|
+
- lib/activerecord_spanner_adapter/foreign_key.rb
|
482
|
+
- lib/activerecord_spanner_adapter/index.rb
|
483
|
+
- lib/activerecord_spanner_adapter/index/column.rb
|
484
|
+
- lib/activerecord_spanner_adapter/information_schema.rb
|
485
|
+
- lib/activerecord_spanner_adapter/primary_key.rb
|
486
|
+
- lib/activerecord_spanner_adapter/table.rb
|
487
|
+
- lib/activerecord_spanner_adapter/table/column.rb
|
488
|
+
- lib/activerecord_spanner_adapter/transaction.rb
|
489
|
+
- lib/activerecord_spanner_adapter/version.rb
|
490
|
+
- lib/arel/visitors/spanner.rb
|
491
|
+
- lib/spanner_client_ext.rb
|
492
|
+
- renovate.json
|
493
|
+
homepage: https://github.com/googleapis/ruby-spanner-activerecord
|
494
|
+
licenses:
|
495
|
+
- MIT
|
124
496
|
metadata: {}
|
125
497
|
post_install_message:
|
126
498
|
rdoc_options: []
|
@@ -130,16 +502,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
502
|
requirements:
|
131
503
|
- - ">="
|
132
504
|
- !ruby/object:Gem::Version
|
133
|
-
version: '
|
505
|
+
version: '2.5'
|
134
506
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
507
|
requirements:
|
136
508
|
- - ">="
|
137
509
|
- !ruby/object:Gem::Version
|
138
510
|
version: '0'
|
139
511
|
requirements: []
|
140
|
-
|
141
|
-
rubygems_version: 2.6.10
|
512
|
+
rubygems_version: 3.2.17
|
142
513
|
signing_key:
|
143
514
|
specification_version: 4
|
144
|
-
summary:
|
515
|
+
summary: Rails ActiveRecord connector for Google Spanner Database
|
145
516
|
test_files: []
|