active_record_proxy_adapters 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +4 -0
- data/.rubocop.yml +20 -0
- data/CHANGELOG.md +9 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/Dockerfile +18 -0
- data/LICENSE.txt +21 -0
- data/README.md +114 -0
- data/Rakefile +12 -0
- data/ci/stages/build.yml +91 -0
- data/ci/stages/env_vars.yml +18 -0
- data/ci/stages/lint.yml +12 -0
- data/ci/stages/prebuild.yml +28 -0
- data/ci/stages/push.yml +23 -0
- data/ci/stages/test.yml +133 -0
- data/docker-compose.yml +77 -0
- data/lib/active_record/connection_adapters/postgresql_proxy_adapter.rb +43 -0
- data/lib/active_record/tasks/postgresql_proxy_database_tasks.rb +45 -0
- data/lib/active_record_proxy_adapters/active_record_context.rb +48 -0
- data/lib/active_record_proxy_adapters/configuration.rb +23 -0
- data/lib/active_record_proxy_adapters/connection_handling.rb +35 -0
- data/lib/active_record_proxy_adapters/hijackable.rb +42 -0
- data/lib/active_record_proxy_adapters/postgresql_proxy.rb +14 -0
- data/lib/active_record_proxy_adapters/primary_replica_proxy.rb +190 -0
- data/lib/active_record_proxy_adapters/railtie.rb +21 -0
- data/lib/active_record_proxy_adapters/version.rb +5 -0
- data/lib/active_record_proxy_adapters.rb +22 -0
- data/postgres_primary.dockerfile +34 -0
- data/postgres_replica.dockerfile +23 -0
- data/sig/active_record_proxy_adapters.rbs +4 -0
- metadata +119 -0
metadata
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: active_record_proxy_adapters
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matt Cruz
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 7.0.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '8.1'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 7.0.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '8.1'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: activesupport
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 7.0.0
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '8.1'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 7.0.0
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '8.1'
|
53
|
+
description: |-
|
54
|
+
This gem allows automatic connection switching between a primary and one read replica database in ActiveRecord.
|
55
|
+
It pattern matches the SQL statement being sent to decide whether it should go to the replica (SELECT) or the
|
56
|
+
primary (INSERT, UPDATE, DELETE).
|
57
|
+
email:
|
58
|
+
- matt.cruz@nasdaq.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".rspec"
|
64
|
+
- ".rubocop.yml"
|
65
|
+
- CHANGELOG.md
|
66
|
+
- CODE_OF_CONDUCT.md
|
67
|
+
- Dockerfile
|
68
|
+
- LICENSE.txt
|
69
|
+
- README.md
|
70
|
+
- Rakefile
|
71
|
+
- ci/stages/build.yml
|
72
|
+
- ci/stages/env_vars.yml
|
73
|
+
- ci/stages/lint.yml
|
74
|
+
- ci/stages/prebuild.yml
|
75
|
+
- ci/stages/push.yml
|
76
|
+
- ci/stages/test.yml
|
77
|
+
- docker-compose.yml
|
78
|
+
- lib/active_record/connection_adapters/postgresql_proxy_adapter.rb
|
79
|
+
- lib/active_record/tasks/postgresql_proxy_database_tasks.rb
|
80
|
+
- lib/active_record_proxy_adapters.rb
|
81
|
+
- lib/active_record_proxy_adapters/active_record_context.rb
|
82
|
+
- lib/active_record_proxy_adapters/configuration.rb
|
83
|
+
- lib/active_record_proxy_adapters/connection_handling.rb
|
84
|
+
- lib/active_record_proxy_adapters/hijackable.rb
|
85
|
+
- lib/active_record_proxy_adapters/postgresql_proxy.rb
|
86
|
+
- lib/active_record_proxy_adapters/primary_replica_proxy.rb
|
87
|
+
- lib/active_record_proxy_adapters/railtie.rb
|
88
|
+
- lib/active_record_proxy_adapters/version.rb
|
89
|
+
- postgres_primary.dockerfile
|
90
|
+
- postgres_replica.dockerfile
|
91
|
+
- sig/active_record_proxy_adapters.rbs
|
92
|
+
homepage: https://github.com/Nasdaq/active_record_proxy_adapters
|
93
|
+
licenses:
|
94
|
+
- MIT
|
95
|
+
metadata:
|
96
|
+
allowed_push_host: https://rubygems.org
|
97
|
+
homepage_uri: https://github.com/Nasdaq/active_record_proxy_adapters
|
98
|
+
source_code_uri: https://github.com/Nasdaq/active_record_proxy_adapters
|
99
|
+
changelog_uri: https://github.com/Nasdaq/active_record_proxy_adapters/-/blob/main/CHANGELOG.md
|
100
|
+
post_install_message:
|
101
|
+
rdoc_options: []
|
102
|
+
require_paths:
|
103
|
+
- lib
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 3.1.0
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
requirements: []
|
115
|
+
rubygems_version: 3.5.11
|
116
|
+
signing_key:
|
117
|
+
specification_version: 4
|
118
|
+
summary: Read replica proxy adapters for ActiveRecord!
|
119
|
+
test_files: []
|