active_record_proxy_adapters 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55e0477b9312372e04d9fe8c544aa6181a378462c3013d6e880b7c6b4e3936ea
|
4
|
+
data.tar.gz: 3f5f4022dbbd02ad8120f5e8c71841a604bc020b48149a271fa10a9dc4a13da4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37de942412b4348743f5fec2b6377552c222058b213e4715dd2f72292c442e5f65ca398699df898309fc21c6fbfd2a8c19b916358937db2d52f8b95b420a6ddd
|
7
|
+
data.tar.gz: e001c6b1d423487b6a08f791a623fc1801e64f9c9a1811470a8e5802bb64c7d4e99fef72d78281211da3953c28e237f5aa147a9a53a2b9895cc6b98c6bcf354e
|
@@ -32,13 +32,13 @@ module ActiveRecordProxyAdapters
|
|
32
32
|
# These patterns define which database statments are considered write statments, so we can shortly re-route all
|
33
33
|
# requests to the primary database so the replica has time to replicate
|
34
34
|
WRITE_STATEMENT_MATCHERS = [
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
/
|
39
|
-
/
|
40
|
-
/
|
41
|
-
/DROP\s/i
|
35
|
+
/(\A|\s+?)BEGIN/i,
|
36
|
+
/(\A|\s+?)COMMIT/i,
|
37
|
+
/(\A|\s+?)ROLLBACK/i,
|
38
|
+
/(\A|\s+?)(INSERT\s+?INTO\s+?\S+?)/i,
|
39
|
+
/(\A|\s+?)UPDATE\s+?\S+?/i,
|
40
|
+
/(\A|\s+?)DELETE\s+?FROM\s+?\S+?/i,
|
41
|
+
/(\A|\s+?)DROP\s/i
|
42
42
|
].map(&:freeze).freeze
|
43
43
|
|
44
44
|
# Abstract adapter methods that should be proxied.
|