activerecord-spanner-adapter 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +7 -0
- data/README.md +3 -2
- data/lib/activerecord_spanner_adapter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5796cf16ff55f858459e9d87da1cdd362b8b8a097161e3e7bda6283b56f6036a
|
4
|
+
data.tar.gz: 9e2b8b7f9f4a72b7fe70d139281b82468d019cc46065368bd9fc0dc9e687a722
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4899a089f30648b42a68386da0c43553c560c620178ff5609153cc67c42a08ada041b2dba565870c1b63cc067d3bbcd2208f97f290db93cda4dc2ba8c0dccb6a
|
7
|
+
data.tar.gz: f3f3fca35b1e83a02fbd073cf5a8d969d411ac93588cb41c828e5a596d74cb8485f8bc23956e205ea1737a30bada65f65812ca0b24c8f02bb1287ed2106c6134
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 1.2.2 (2022-08-29)
|
4
|
+
|
5
|
+
#### Documentation
|
6
|
+
|
7
|
+
* add ActiveRecord 7 as a supported version to the README ([#189](https://github.com/googleapis/ruby-spanner-activerecord/issues/189))
|
8
|
+
* update limitation on interleaved tables and default column values ([#190](https://github.com/googleapis/ruby-spanner-activerecord/issues/190))
|
9
|
+
|
3
10
|
### 1.2.1 (2022-08-28)
|
4
11
|
|
5
12
|
#### Bug Fixes
|
data/README.md
CHANGED
@@ -8,6 +8,7 @@ This project provides a Cloud Spanner adapter for ActiveRecord. It supports the
|
|
8
8
|
|
9
9
|
- ActiveRecord 6.0.x with Ruby 2.6 and 2.7.
|
10
10
|
- ActiveRecord 6.1.x with Ruby 2.6 and higher.
|
11
|
+
- ActiveRecord 7.0.x with Ruby 2.7 and higher.
|
11
12
|
|
12
13
|
Known limitations are listed in the [Limitations](#limitations) section.
|
13
14
|
Please report any problems that you might encounter by [creating a new issue](https://github.com/googleapis/ruby-spanner-activerecord/issues/new).
|
@@ -70,13 +71,13 @@ Some noteworthy examples in the snippets directory:
|
|
70
71
|
for inserting, updating and deleting data in a Cloud Spanner database. Mutations can have a significant performance
|
71
72
|
advantage compared to DML statements, but do not allow read-your-writes semantics during a transaction.
|
72
73
|
- [array-data-type](examples/snippets/array-data-type): Shows how to work with `ARRAY` data types.
|
74
|
+
- [interleaved-tables](examples/snippets/interleaved-tables): Shows how to work with [Interleaved Tables](https://cloud.google.com/spanner/docs/schema-and-data-model#create-interleaved-tables).
|
73
75
|
|
74
76
|
## Limitations
|
75
77
|
|
76
78
|
Limitation|Comment|Resolution
|
77
79
|
---|---|---
|
78
|
-
Interleaved tables
|
79
|
-
Lack of DEFAULT for columns [change_column_default](https://apidock.com/rails/v5.2.3/ActiveRecord/ConnectionAdapters/SchemaStatements/change_column_default)|Cloud Spanner does not support DEFAULT values for columns. The use of default must be enforced in your controller logic| Always set a value in your model or controller logic.
|
80
|
+
Interleaved tables require composite primary keys| Cloud Spanner requires composite primary keys for interleaved tables. See {file:examples/snippets/interleaved-tables/README.md this example} for an example on how to use interleaved tables with ActiveRecord |Use composite primary keys.
|
80
81
|
Lack of sequential and auto-assigned IDs|Cloud Spanner doesn't autogenerate IDs and this integration instead creates UUID4 to avoid [hotspotting](https://cloud.google.com/spanner/docs/schema-design#uuid_primary_key) so you SHOULD NOT rely on IDs being sorted| UUID4s are automatically generated for primary keys.
|
81
82
|
Table without Primary Key| Cloud Spanner support does not support tables without a primary key.| Always define a primary key for your table.
|
82
83
|
Table names CANNOT have spaces within them whether back-ticked or not|Cloud Spanner DOES NOT support tables with spaces in them for example `Entity ID`|Ensure that your table names don't contain spaces.
|