active_record-async_connection_pool 0.1.0

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.
Files changed (24) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +349 -0
  4. data/Rakefile +11 -0
  5. data/lib/active_record/async_connection_pool/adapter_extension/attachment.rb +276 -0
  6. data/lib/active_record/async_connection_pool/adapter_extension/detection.rb +55 -0
  7. data/lib/active_record/async_connection_pool/adapter_extension.rb +343 -0
  8. data/lib/active_record/async_connection_pool/database_options.rb +80 -0
  9. data/lib/active_record/async_connection_pool/errors.rb +17 -0
  10. data/lib/active_record/async_connection_pool/handler.rb +183 -0
  11. data/lib/active_record/async_connection_pool/handlers/postgresql/adapter_methods.rb +216 -0
  12. data/lib/active_record/async_connection_pool/handlers/postgresql/pg_query_detector.rb +256 -0
  13. data/lib/active_record/async_connection_pool/handlers/postgresql.rb +347 -0
  14. data/lib/active_record/async_connection_pool/handlers/sqlite3/adapter_methods.rb +143 -0
  15. data/lib/active_record/async_connection_pool/handlers/sqlite3.rb +183 -0
  16. data/lib/active_record/async_connection_pool/handlers/trilogy/adapter_methods.rb +140 -0
  17. data/lib/active_record/async_connection_pool/handlers/trilogy.rb +159 -0
  18. data/lib/active_record/async_connection_pool/pool_extension.rb +201 -0
  19. data/lib/active_record/async_connection_pool/raw_entry.rb +80 -0
  20. data/lib/active_record/async_connection_pool/raw_pool.rb +336 -0
  21. data/lib/active_record/async_connection_pool/session_state.rb +223 -0
  22. data/lib/active_record/async_connection_pool/version.rb +8 -0
  23. data/lib/active_record/async_connection_pool.rb +86 -0
  24. metadata +86 -0
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_record-async_connection_pool
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Minty Fresh
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: activerecord
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '8.1'
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: '8.2'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '8.1'
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '8.2'
32
+ description: Attaches physical database connections to ActiveRecord fibers only while
33
+ they run queries, so many fibers can share a small pool of raw connections.
34
+ email:
35
+ - 7896757+mintyfresh@users.noreply.github.com
36
+ executables: []
37
+ extensions: []
38
+ extra_rdoc_files: []
39
+ files:
40
+ - MIT-LICENSE
41
+ - README.md
42
+ - Rakefile
43
+ - lib/active_record/async_connection_pool.rb
44
+ - lib/active_record/async_connection_pool/adapter_extension.rb
45
+ - lib/active_record/async_connection_pool/adapter_extension/attachment.rb
46
+ - lib/active_record/async_connection_pool/adapter_extension/detection.rb
47
+ - lib/active_record/async_connection_pool/database_options.rb
48
+ - lib/active_record/async_connection_pool/errors.rb
49
+ - lib/active_record/async_connection_pool/handler.rb
50
+ - lib/active_record/async_connection_pool/handlers/postgresql.rb
51
+ - lib/active_record/async_connection_pool/handlers/postgresql/adapter_methods.rb
52
+ - lib/active_record/async_connection_pool/handlers/postgresql/pg_query_detector.rb
53
+ - lib/active_record/async_connection_pool/handlers/sqlite3.rb
54
+ - lib/active_record/async_connection_pool/handlers/sqlite3/adapter_methods.rb
55
+ - lib/active_record/async_connection_pool/handlers/trilogy.rb
56
+ - lib/active_record/async_connection_pool/handlers/trilogy/adapter_methods.rb
57
+ - lib/active_record/async_connection_pool/pool_extension.rb
58
+ - lib/active_record/async_connection_pool/raw_entry.rb
59
+ - lib/active_record/async_connection_pool/raw_pool.rb
60
+ - lib/active_record/async_connection_pool/session_state.rb
61
+ - lib/active_record/async_connection_pool/version.rb
62
+ homepage: https://github.com/mintyfresh/active_record-async_connection_pool
63
+ licenses:
64
+ - MIT
65
+ metadata:
66
+ homepage_uri: https://github.com/mintyfresh/active_record-async_connection_pool
67
+ source_code_uri: https://github.com/mintyfresh/active_record-async_connection_pool
68
+ rubygems_mfa_required: 'true'
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '3.3'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubygems_version: 4.0.20
84
+ specification_version: 4
85
+ summary: Lets fibers share a small pool of database connections under ActiveRecord
86
+ test_files: []