pg_eventstore 1.1.3 → 1.1.4

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 (140) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +4 -3
  4. data/lib/pg_eventstore/abstract_command.rb +2 -0
  5. data/lib/pg_eventstore/callbacks.rb +3 -0
  6. data/lib/pg_eventstore/client.rb +6 -1
  7. data/lib/pg_eventstore/config.rb +1 -1
  8. data/lib/pg_eventstore/connection.rb +9 -1
  9. data/lib/pg_eventstore/errors.rb +45 -26
  10. data/lib/pg_eventstore/event.rb +2 -1
  11. data/lib/pg_eventstore/event_class_resolver.rb +1 -1
  12. data/lib/pg_eventstore/event_deserializer.rb +8 -2
  13. data/lib/pg_eventstore/event_serializer.rb +2 -0
  14. data/lib/pg_eventstore/extensions/callbacks_extension.rb +1 -0
  15. data/lib/pg_eventstore/extensions/options_extension.rb +3 -1
  16. data/lib/pg_eventstore/queries/event_queries.rb +12 -4
  17. data/lib/pg_eventstore/queries/links_resolver.rb +3 -0
  18. data/lib/pg_eventstore/queries/partition_queries.rb +6 -0
  19. data/lib/pg_eventstore/queries/transaction_queries.rb +4 -0
  20. data/lib/pg_eventstore/queries.rb +1 -1
  21. data/lib/pg_eventstore/query_builders/{events_filtering_query.rb → events_filtering.rb} +3 -0
  22. data/lib/pg_eventstore/sql_builder.rb +18 -10
  23. data/lib/pg_eventstore/stream.rb +13 -2
  24. data/lib/pg_eventstore/subscriptions/basic_runner.rb +2 -0
  25. data/lib/pg_eventstore/subscriptions/commands_handler.rb +5 -3
  26. data/lib/pg_eventstore/subscriptions/queries/subscription_command_queries.rb +6 -4
  27. data/lib/pg_eventstore/subscriptions/queries/subscription_queries.rb +4 -2
  28. data/lib/pg_eventstore/subscriptions/queries/subscriptions_set_command_queries.rb +6 -4
  29. data/lib/pg_eventstore/subscriptions/queries/subscriptions_set_queries.rb +3 -0
  30. data/lib/pg_eventstore/subscriptions/runner_state.rb +1 -0
  31. data/lib/pg_eventstore/subscriptions/subscription.rb +19 -17
  32. data/lib/pg_eventstore/subscriptions/subscription_feeder.rb +4 -0
  33. data/lib/pg_eventstore/subscriptions/subscription_feeder_commands/base.rb +4 -4
  34. data/lib/pg_eventstore/subscriptions/subscription_handler_performance.rb +2 -1
  35. data/lib/pg_eventstore/subscriptions/subscription_runner.rb +5 -0
  36. data/lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb +4 -4
  37. data/lib/pg_eventstore/subscriptions/subscriptions_manager.rb +6 -4
  38. data/lib/pg_eventstore/subscriptions/subscriptions_set.rb +10 -10
  39. data/lib/pg_eventstore/version.rb +2 -1
  40. data/lib/pg_eventstore/web/application.rb +6 -6
  41. data/lib/pg_eventstore/web/paginator/base_collection.rb +15 -1
  42. data/lib/pg_eventstore/web/paginator/event_types_collection.rb +2 -1
  43. data/lib/pg_eventstore/web/paginator/events_collection.rb +7 -4
  44. data/lib/pg_eventstore/web/paginator/helpers.rb +3 -3
  45. data/lib/pg_eventstore/web/paginator/stream_contexts_collection.rb +2 -1
  46. data/lib/pg_eventstore/web/paginator/stream_ids_collection.rb +2 -1
  47. data/lib/pg_eventstore/web/paginator/stream_names_collection.rb +2 -1
  48. data/lib/pg_eventstore/web/subscriptions/set_collection.rb +2 -0
  49. data/lib/pg_eventstore/web/subscriptions/subscriptions.rb +2 -0
  50. data/lib/pg_eventstore/web/subscriptions/subscriptions_set.rb +2 -0
  51. data/lib/pg_eventstore/web/subscriptions/subscriptions_to_set_association.rb +6 -1
  52. data/lib/pg_eventstore.rb +6 -1
  53. data/rbs_collection.lock.yaml +16 -0
  54. data/rbs_collection.yaml +23 -0
  55. data/sig/interfaces/callback.rbs +3 -0
  56. data/sig/interfaces/event_class_resolver.rbs +3 -0
  57. data/sig/interfaces/event_modifier.rbs +3 -0
  58. data/sig/interfaces/restart_terminator.rbs +3 -0
  59. data/sig/interfaces/subscription_handler.rbs +3 -0
  60. data/sig/pg/basic_type_registry.rbs +21 -0
  61. data/sig/pg/connection.rbs +407 -0
  62. data/sig/pg/constants.rbs +153 -0
  63. data/sig/pg_eventstore/abstract_command.rbs +11 -0
  64. data/sig/pg_eventstore/callbacks.rbs +21 -0
  65. data/sig/pg_eventstore/client.rbs +67 -0
  66. data/sig/pg_eventstore/commands/append.rbs +33 -0
  67. data/sig/pg_eventstore/commands/event_modifiers/prepare_link_event.rbs +24 -0
  68. data/sig/pg_eventstore/commands/event_modifiers/prepare_regular_event.rbs +12 -0
  69. data/sig/pg_eventstore/commands/link_to.rbs +17 -0
  70. data/sig/pg_eventstore/commands/multiple.rbs +7 -0
  71. data/sig/pg_eventstore/commands/read.rbs +10 -0
  72. data/sig/pg_eventstore/commands/regular_stream_read_paginated.rbs +32 -0
  73. data/sig/pg_eventstore/commands/system_stream_read_paginated.rbs +30 -0
  74. data/sig/pg_eventstore/config.rbs +51 -0
  75. data/sig/pg_eventstore/connection.rbs +30 -0
  76. data/sig/pg_eventstore/errors.rbs +116 -0
  77. data/sig/pg_eventstore/event.rbs +46 -0
  78. data/sig/pg_eventstore/event_class_resolver.rbs +6 -0
  79. data/sig/pg_eventstore/event_deserializer.rbs +20 -0
  80. data/sig/pg_eventstore/event_serializer.rbs +13 -0
  81. data/sig/pg_eventstore/extensions/callbacks_extension.rbs +23 -0
  82. data/sig/pg_eventstore/extensions/options_extension.rbs +37 -0
  83. data/sig/pg_eventstore/extensions/using_connection_extension.rbs +14 -0
  84. data/sig/pg_eventstore/middleware.rbs +9 -0
  85. data/sig/pg_eventstore/pg_connection.rbs +13 -0
  86. data/sig/pg_eventstore/queries/event_queries.rbs +50 -0
  87. data/sig/pg_eventstore/queries/links_resolver.rbs +19 -0
  88. data/sig/pg_eventstore/queries/partition_queries.rbs +74 -0
  89. data/sig/pg_eventstore/queries/transaction_queries.rbs +21 -0
  90. data/sig/pg_eventstore/queries.rbs +23 -0
  91. data/sig/pg_eventstore/query_builders/events_filtering_query.rbs +62 -0
  92. data/sig/pg_eventstore/sql_builder.rbs +74 -0
  93. data/sig/pg_eventstore/stream.rbs +40 -0
  94. data/sig/pg_eventstore/subscriptions/basic_runner.rbs +37 -0
  95. data/sig/pg_eventstore/subscriptions/command_handlers/subscription_feeder_commands.rbs +16 -0
  96. data/sig/pg_eventstore/subscriptions/command_handlers/subscription_runners_commands.rbs +18 -0
  97. data/sig/pg_eventstore/subscriptions/commands_handler.rbs +25 -0
  98. data/sig/pg_eventstore/subscriptions/events_processor.rbs +34 -0
  99. data/sig/pg_eventstore/subscriptions/extensions/base_command_extension.rbs +20 -0
  100. data/sig/pg_eventstore/subscriptions/extensions/command_class_lookup_extension.rbs +8 -0
  101. data/sig/pg_eventstore/subscriptions/queries/subscription_command_queries.rbs +56 -0
  102. data/sig/pg_eventstore/subscriptions/queries/subscription_queries.rbs +73 -0
  103. data/sig/pg_eventstore/subscriptions/queries/subscriptions_set_command_queries.rbs +39 -0
  104. data/sig/pg_eventstore/subscriptions/queries/subscriptions_set_queries.rbs +36 -0
  105. data/sig/pg_eventstore/subscriptions/runner_state.rbs +16 -0
  106. data/sig/pg_eventstore/subscriptions/subscription.rbs +96 -0
  107. data/sig/pg_eventstore/subscriptions/subscription_feeder.rbs +64 -0
  108. data/sig/pg_eventstore/subscriptions/subscription_feeder_commands/base.rbs +45 -0
  109. data/sig/pg_eventstore/subscriptions/subscription_feeder_commands/restore.rbs +8 -0
  110. data/sig/pg_eventstore/subscriptions/subscription_feeder_commands/start_all.rbs +8 -0
  111. data/sig/pg_eventstore/subscriptions/subscription_feeder_commands/stop.rbs +8 -0
  112. data/sig/pg_eventstore/subscriptions/subscription_feeder_commands/stop_all.rbs +8 -0
  113. data/sig/pg_eventstore/subscriptions/subscription_feeder_commands.rbs +8 -0
  114. data/sig/pg_eventstore/subscriptions/subscription_handler_performance.rbs +12 -0
  115. data/sig/pg_eventstore/subscriptions/subscription_runner.rbs +55 -0
  116. data/sig/pg_eventstore/subscriptions/subscription_runner_commands/base.rbs +47 -0
  117. data/sig/pg_eventstore/subscriptions/subscription_runner_commands/reset_position.rbs +11 -0
  118. data/sig/pg_eventstore/subscriptions/subscription_runner_commands/restore.rbs +8 -0
  119. data/sig/pg_eventstore/subscriptions/subscription_runner_commands/start.rbs +8 -0
  120. data/sig/pg_eventstore/subscriptions/subscription_runner_commands/stop.rbs +8 -0
  121. data/sig/pg_eventstore/subscriptions/subscription_runner_commands.rbs +8 -0
  122. data/sig/pg_eventstore/subscriptions/subscription_runners_feeder.rbs +13 -0
  123. data/sig/pg_eventstore/subscriptions/subscriptions_manager.rbs +60 -0
  124. data/sig/pg_eventstore/subscriptions/subscriptions_set.rbs +72 -0
  125. data/sig/pg_eventstore/utils.rbs +20 -0
  126. data/sig/pg_eventstore/version.rbs +3 -0
  127. data/sig/pg_eventstore/web/paginator/base_collection.rbs +51 -0
  128. data/sig/pg_eventstore/web/paginator/event_types_collection.rbs +15 -0
  129. data/sig/pg_eventstore/web/paginator/events_collection.rbs +31 -0
  130. data/sig/pg_eventstore/web/paginator/helpers.rbs +38 -0
  131. data/sig/pg_eventstore/web/paginator/stream_contexts_collection.rbs +15 -0
  132. data/sig/pg_eventstore/web/paginator/stream_ids_collection.rbs +15 -0
  133. data/sig/pg_eventstore/web/paginator/stream_names_collection.rbs +15 -0
  134. data/sig/pg_eventstore/web/subscriptions/helpers.rbs +48 -0
  135. data/sig/pg_eventstore/web/subscriptions/set_collection.rbs +18 -0
  136. data/sig/pg_eventstore/web/subscriptions/subscriptions.rbs +18 -0
  137. data/sig/pg_eventstore/web/subscriptions/subscriptions_set.rbs +18 -0
  138. data/sig/pg_eventstore/web/subscriptions/subscriptions_to_set_association.rbs +18 -0
  139. data/sig/pg_eventstore.rbs +42 -0
  140. metadata +90 -3
@@ -4,9 +4,10 @@ module PgEventstore
4
4
  module Web
5
5
  module Paginator
6
6
  class StreamNamesCollection < BaseCollection
7
+ # @return [Integer]
7
8
  PER_PAGE = 10
8
9
 
9
- # @return [Array<Hash>]
10
+ # @return [Array<Hash<String => String>>]
10
11
  def collection
11
12
  @_collection ||=
12
13
  begin
@@ -4,6 +4,8 @@ module PgEventstore
4
4
  module Web
5
5
  module Subscriptions
6
6
  class SetCollection
7
+ # @!attribute connection
8
+ # @return [PgEventstore::Connection]
7
9
  attr_reader :connection
8
10
  private :connection
9
11
 
@@ -4,6 +4,8 @@ module PgEventstore
4
4
  module Web
5
5
  module Subscriptions
6
6
  class Subscriptions
7
+ # @!attribute connection
8
+ # @return [PgEventstore::Connection]
7
9
  attr_reader :connection
8
10
  private :connection
9
11
 
@@ -4,6 +4,8 @@ module PgEventstore
4
4
  module Web
5
5
  module Subscriptions
6
6
  class SubscriptionsSet
7
+ # @!attribute connection
8
+ # @return [PgEventstore::Connection]
7
9
  attr_reader :connection
8
10
  private :connection
9
11
 
@@ -4,7 +4,12 @@ module PgEventstore
4
4
  module Web
5
5
  module Subscriptions
6
6
  class SubscriptionsToSetAssociation
7
- attr_reader :subscriptions_set, :subscriptions
7
+ # @!attribute subscriptions_set
8
+ # @return [Array<PgEventstore::SubscriptionsSet>]
9
+ attr_reader :subscriptions_set
10
+ # @!attribute subscriptions
11
+ # @return [Array<PgEventstore::Subscription>]
12
+ attr_reader :subscriptions
8
13
 
9
14
  # @param subscriptions_set [Array<PgEventstore::SubscriptionsSet>]
10
15
  # @param subscriptions [Array<PgEventstore::Subscription>]
data/lib/pg_eventstore.rb CHANGED
@@ -18,6 +18,8 @@ require_relative 'pg_eventstore/subscriptions/subscriptions_manager'
18
18
 
19
19
  module PgEventstore
20
20
  class << self
21
+ # @!attribute mutex
22
+ # @return [Thread::Mutex]
21
23
  attr_reader :mutex
22
24
  private :mutex
23
25
 
@@ -71,7 +73,7 @@ module PgEventstore
71
73
  # @param subscription_set [String]
72
74
  # @param max_retries [Integer, nil] max number of retries of failed SubscriptionsSet
73
75
  # @param retries_interval [Integer, nil] a delay between retries of failed SubscriptionsSet
74
- # @return [PgEventstore::SubscriptionManager]
76
+ # @return [PgEventstore::SubscriptionsManager]
75
77
  def subscriptions_manager(config_name = :default, subscription_set:, max_retries: nil, retries_interval: nil)
76
78
  SubscriptionsManager.new(
77
79
  config: config(config_name),
@@ -87,10 +89,13 @@ module PgEventstore
87
89
  Client.new(config(name))
88
90
  end
89
91
 
92
+ # @return [Logger, nil]
90
93
  def logger
91
94
  @logger
92
95
  end
93
96
 
97
+ # @param logger [Logger, nil]
98
+ # @return [Logger, nil]
94
99
  def logger=(logger)
95
100
  @logger = logger
96
101
  end
@@ -0,0 +1,16 @@
1
+ ---
2
+ path: ".gem_rbs_collection"
3
+ gems:
4
+ - name: connection_pool
5
+ version: '2.4'
6
+ source:
7
+ type: git
8
+ name: ruby/gem_rbs_collection
9
+ revision: ac8b33799c494ea5b22e7dc850d53f99dc4849e9
10
+ remote: https://github.com/ruby/gem_rbs_collection.git
11
+ repo_dir: gems
12
+ - name: timeout
13
+ version: '0'
14
+ source:
15
+ type: stdlib
16
+ gemfile_lock_path: Gemfile.lock
@@ -0,0 +1,23 @@
1
+ # Download sources
2
+ sources:
3
+ - type: git
4
+ name: ruby/gem_rbs_collection
5
+ remote: https://github.com/ruby/gem_rbs_collection.git
6
+ revision: main
7
+ repo_dir: gems
8
+
9
+ # You can specify local directories as sources also.
10
+ # - type: local
11
+ # path: path/to/your/local/repository
12
+
13
+ # A directory to install the downloaded RBSs
14
+ path: .gem_rbs_collection
15
+
16
+ gems:
17
+ - name: sinatra
18
+ ignore: true
19
+
20
+ # gems:
21
+ # # If you want to avoid installing rbs files for gems, you can specify them here.
22
+ # - name: GEM_NAME
23
+ # ignore: true
@@ -0,0 +1,3 @@
1
+ interface _Callback
2
+ def call: (*untyped args, **untyped kwargs) -> untyped
3
+ end
@@ -0,0 +1,3 @@
1
+ interface _EventClassResolver
2
+ def call: (String event_type) -> Class
3
+ end
@@ -0,0 +1,3 @@
1
+ interface _EventModifier
2
+ def call: (PgEventstore::Event event, Integer revision) -> PgEventstore::Event
3
+ end
@@ -0,0 +1,3 @@
1
+ interface _RestartTerminator
2
+ def call: (PgEventstore::Subscription subscription) -> boolish
3
+ end
@@ -0,0 +1,3 @@
1
+ interface _SubscriptionHandler
2
+ def call: (PgEventstore::Event event) -> void
3
+ end
@@ -0,0 +1,21 @@
1
+ module PG
2
+ class BasicTypeRegistry
3
+ public
4
+
5
+ def alias_type: (untyped format, untyped new, untyped old) -> untyped
6
+
7
+ def coders_for: (untyped format, untyped direction) -> untyped
8
+
9
+ alias define_default_types register_default_types
10
+
11
+ def register_coder: (untyped coder) -> untyped
12
+
13
+ def register_default_types: () -> untyped
14
+
15
+ def register_type: (untyped format, untyped name, untyped encoder_class, untyped decoder_class) -> untyped
16
+
17
+ private
18
+
19
+ def initialize: () -> void
20
+ end
21
+ end
@@ -0,0 +1,407 @@
1
+ module PG
2
+ class Connection
3
+ include PG::Constants
4
+
5
+ def self.async_api=: (untyped enable) -> untyped
6
+
7
+ alias self.async_connect self.new
8
+
9
+ alias self.async_ping self.ping
10
+
11
+ def self.async_send_api=: (untyped enable) -> untyped
12
+
13
+ def self.conndefaults: () -> untyped
14
+
15
+ def self.conndefaults_hash: () -> untyped
16
+
17
+ alias self.connect self.new
18
+
19
+ def self.connect_hash_to_string: (untyped hash) -> untyped
20
+
21
+ def self.connect_start: (*untyped) -> untyped
22
+
23
+ def self.conninfo_parse: (untyped) -> untyped
24
+
25
+ def self.encrypt_password: (untyped, untyped) -> untyped
26
+
27
+ alias self.escape self.escape_string
28
+
29
+ def self.escape_bytea: (untyped) -> untyped
30
+
31
+ def self.escape_string: (untyped) -> untyped
32
+
33
+ def self.isthreadsafe: () -> untyped
34
+
35
+ def self.new: (*untyped args) ?{ (untyped) -> untyped } -> untyped
36
+
37
+ alias self.open self.new
38
+
39
+ def self.parse_connect_args: (*untyped args) -> untyped
40
+
41
+ def self.ping: (*untyped args) -> untyped
42
+
43
+ def self.quote_connstr: (untyped value) -> untyped
44
+
45
+ def self.quote_ident: (untyped) -> untyped
46
+
47
+ alias self.setdb self.new
48
+
49
+ alias self.setdblogin self.new
50
+
51
+ def self.sync_connect: (*untyped) -> untyped
52
+
53
+ def self.sync_ping: (*untyped) -> untyped
54
+
55
+ def self.unescape_bytea: (untyped) -> untyped
56
+
57
+ public
58
+
59
+ alias async_cancel cancel
60
+
61
+ alias async_describe_portal describe_portal
62
+
63
+ alias async_describe_prepared describe_prepared
64
+
65
+ alias async_encrypt_password encrypt_password
66
+
67
+ alias async_exec exec
68
+
69
+ alias async_exec_params exec_params
70
+
71
+ alias async_exec_prepared exec_prepared
72
+
73
+ alias async_flush flush
74
+
75
+ alias async_get_copy_data get_copy_data
76
+
77
+ alias async_get_last_result get_last_result
78
+
79
+ alias async_get_result get_result
80
+
81
+ alias async_isnonblocking isnonblocking
82
+
83
+ alias async_prepare prepare
84
+
85
+ alias async_put_copy_data put_copy_data
86
+
87
+ alias async_put_copy_end put_copy_end
88
+
89
+ alias async_query exec
90
+
91
+ alias async_reset reset
92
+
93
+ alias async_set_client_encoding set_client_encoding
94
+
95
+ alias async_setnonblocking setnonblocking
96
+
97
+ def backend_key: () -> untyped
98
+
99
+ def backend_pid: () -> untyped
100
+
101
+ def block: (*untyped) -> untyped
102
+
103
+ def cancel: () -> untyped
104
+
105
+ def check_socket: () -> untyped
106
+
107
+ alias client_encoding= set_client_encoding
108
+
109
+ alias close finish
110
+
111
+ def conndefaults: () -> untyped
112
+
113
+ def conndefaults_hash: () -> untyped
114
+
115
+ def connect_poll: () -> untyped
116
+
117
+ def connection_needs_password: () -> untyped
118
+
119
+ def connection_used_password: () -> untyped
120
+
121
+ def conninfo: () -> untyped
122
+
123
+ def conninfo_hash: () -> untyped
124
+
125
+ def consume_input: () -> untyped
126
+
127
+ def copy_data: (untyped sql, ?untyped coder) { (untyped) -> untyped } -> untyped
128
+
129
+ def db: () -> untyped
130
+
131
+ def decoder_for_get_copy_data: () -> untyped
132
+
133
+ def decoder_for_get_copy_data=: (untyped) -> untyped
134
+
135
+ def describe_portal: (untyped) -> untyped
136
+
137
+ def describe_prepared: (untyped) -> untyped
138
+
139
+ def discard_results: () -> untyped
140
+
141
+ def encoder_for_put_copy_data: () -> untyped
142
+
143
+ def encoder_for_put_copy_data=: (untyped) -> untyped
144
+
145
+ def encrypt_password: (untyped password, untyped username, ?untyped algorithm) -> untyped
146
+
147
+ def enter_pipeline_mode: () -> untyped
148
+
149
+ def error_message: () -> untyped
150
+
151
+ alias escape escape_string
152
+
153
+ def escape_bytea: (untyped) -> untyped
154
+
155
+ def escape_identifier: (untyped) -> untyped
156
+
157
+ def escape_literal: (untyped) -> untyped
158
+
159
+ def escape_string: (untyped) -> untyped
160
+
161
+ def exec: (*untyped) -> untyped
162
+
163
+ def exec_params: (*untyped) -> untyped
164
+
165
+ def exec_prepared: (*untyped) -> untyped
166
+
167
+ def exit_pipeline_mode: () -> untyped
168
+
169
+ def external_encoding: () -> untyped
170
+
171
+ def field_name_type: () -> untyped
172
+
173
+ def field_name_type=: (untyped) -> untyped
174
+
175
+ def finish: () -> untyped
176
+
177
+ def finished?: () -> untyped
178
+
179
+ def flush: () -> untyped
180
+
181
+ def get_client_encoding: () -> untyped
182
+
183
+ def get_copy_data: (?untyped async, ?untyped decoder) -> untyped
184
+
185
+ def get_last_result: () -> untyped
186
+
187
+ def get_result: () -> untyped
188
+
189
+ def host: () -> untyped
190
+
191
+ def hostaddr: () -> untyped
192
+
193
+ def inspect: () -> untyped
194
+
195
+ def internal_encoding: () -> untyped
196
+
197
+ def internal_encoding=: (untyped) -> untyped
198
+
199
+ def is_busy: () -> untyped
200
+
201
+ def isnonblocking: () -> untyped
202
+
203
+ def lo_close: (untyped) -> untyped
204
+
205
+ def lo_creat: (*untyped) -> untyped
206
+
207
+ def lo_create: (untyped) -> untyped
208
+
209
+ def lo_export: (untyped, untyped) -> untyped
210
+
211
+ def lo_import: (untyped) -> untyped
212
+
213
+ def lo_lseek: (untyped, untyped, untyped) -> untyped
214
+
215
+ def lo_open: (*untyped) -> untyped
216
+
217
+ def lo_read: (untyped, untyped) -> untyped
218
+
219
+ alias lo_seek lo_lseek
220
+
221
+ def lo_tell: (untyped) -> untyped
222
+
223
+ def lo_truncate: (untyped, untyped) -> untyped
224
+
225
+ def lo_unlink: (untyped) -> untyped
226
+
227
+ def lo_write: (untyped, untyped) -> untyped
228
+
229
+ alias loclose lo_close
230
+
231
+ alias locreat lo_creat
232
+
233
+ alias locreate lo_create
234
+
235
+ alias loexport lo_export
236
+
237
+ alias loimport lo_import
238
+
239
+ alias lolseek lo_lseek
240
+
241
+ alias loopen lo_open
242
+
243
+ alias loread lo_read
244
+
245
+ alias loseek lo_lseek
246
+
247
+ alias lotell lo_tell
248
+
249
+ alias lotruncate lo_truncate
250
+
251
+ alias lounlink lo_unlink
252
+
253
+ alias lowrite lo_write
254
+
255
+ def make_empty_pgresult: (untyped) -> untyped
256
+
257
+ alias nonblocking? isnonblocking
258
+
259
+ def notifies: () -> untyped
260
+
261
+ alias notifies_wait wait_for_notify
262
+
263
+ def options: () -> untyped
264
+
265
+ def parameter_status: (untyped) -> untyped
266
+
267
+ def pass: () -> untyped
268
+
269
+ def pipeline_status: () -> untyped
270
+
271
+ def pipeline_sync: () -> untyped
272
+
273
+ def port: () -> untyped
274
+
275
+ def prepare: (*untyped) -> untyped
276
+
277
+ def protocol_version: () -> untyped
278
+
279
+ def put_copy_data: (untyped buffer, ?untyped encoder) -> untyped
280
+
281
+ def put_copy_end: (*untyped args) -> untyped
282
+
283
+ alias query exec
284
+
285
+ def quote_ident: (untyped) -> untyped
286
+
287
+ def reset: () -> untyped
288
+
289
+ def reset_poll: () -> untyped
290
+
291
+ def reset_start: () -> untyped
292
+
293
+ def send_describe_portal: (untyped) -> untyped
294
+
295
+ def send_describe_prepared: (untyped) -> untyped
296
+
297
+ def send_flush_request: () -> untyped
298
+
299
+ def send_prepare: (*untyped) -> untyped
300
+
301
+ def send_query: (*untyped) -> untyped
302
+
303
+ def send_query_params: (*untyped) -> untyped
304
+
305
+ def send_query_prepared: (*untyped) -> untyped
306
+
307
+ def server_version: () -> untyped
308
+
309
+ def set_client_encoding: (untyped) -> untyped
310
+
311
+ def set_default_encoding: () -> untyped
312
+
313
+ def set_error_context_visibility: (untyped) -> untyped
314
+
315
+ def set_error_verbosity: (untyped) -> untyped
316
+
317
+ def set_notice_processor: () -> untyped
318
+
319
+ def set_notice_receiver: () -> untyped
320
+
321
+ def set_single_row_mode: () -> untyped
322
+
323
+ def setnonblocking: (untyped enabled) -> untyped
324
+
325
+ def socket: () -> untyped
326
+
327
+ def socket_io: () -> untyped
328
+
329
+ def ssl_attribute: (untyped) -> untyped
330
+
331
+ def ssl_attribute_names: () -> untyped
332
+
333
+ def ssl_attributes: () -> untyped
334
+
335
+ def ssl_in_use?: () -> untyped
336
+
337
+ def status: () -> untyped
338
+
339
+ def sync_cancel: () -> untyped
340
+
341
+ def sync_describe_portal: (untyped) -> untyped
342
+
343
+ def sync_describe_prepared: (untyped) -> untyped
344
+
345
+ def sync_encrypt_password: (*untyped) -> untyped
346
+
347
+ def sync_exec: (*untyped) -> untyped
348
+
349
+ def sync_exec_params: (*untyped) -> untyped
350
+
351
+ def sync_exec_prepared: (*untyped) -> untyped
352
+
353
+ def sync_flush: () -> untyped
354
+
355
+ def sync_get_copy_data: (*untyped) -> untyped
356
+
357
+ def sync_get_last_result: () -> untyped
358
+
359
+ def sync_get_result: () -> untyped
360
+
361
+ def sync_isnonblocking: () -> untyped
362
+
363
+ def sync_prepare: (*untyped) -> untyped
364
+
365
+ def sync_put_copy_data: (*untyped) -> untyped
366
+
367
+ def sync_put_copy_end: (*untyped) -> untyped
368
+
369
+ def sync_reset: () -> untyped
370
+
371
+ def sync_set_client_encoding: (untyped) -> untyped
372
+
373
+ def sync_setnonblocking: (untyped) -> untyped
374
+
375
+ def trace: (untyped) -> untyped
376
+
377
+ def transaction: () { (untyped) -> untyped } -> untyped
378
+
379
+ def transaction_status: () -> untyped
380
+
381
+ def tty: () -> untyped
382
+
383
+ def type_map_for_queries: () -> untyped
384
+
385
+ def type_map_for_queries=: (untyped) -> untyped
386
+
387
+ def type_map_for_results: () -> untyped
388
+
389
+ def type_map_for_results=: (untyped) -> untyped
390
+
391
+ def unescape_bytea: (untyped) -> untyped
392
+
393
+ def untrace: () -> untyped
394
+
395
+ def user: () -> untyped
396
+
397
+ def wait_for_notify: (*untyped) -> untyped
398
+
399
+ private
400
+
401
+ def async_connect_or_reset: (untyped poll_meth) -> untyped
402
+
403
+ def flush_data=: (untyped) -> untyped
404
+
405
+ def reset_start2: (untyped) -> untyped
406
+ end
407
+ end