Repository navigation
Expand file tree
/
Copy pathconnection.rbs
More file actions
93 lines (59 loc) · 1.93 KB
/
Copy pathconnection.rbs
File metadata and controls
93 lines (59 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# auto-generated by sqlc - do not edit
module PgCodegen
interface _PgConnection
def backend_pid: () -> ::Integer
def socket_io: () -> ::IO
def reset: () -> void
def finished?: () -> bool
def close: () -> void
def finish: () -> void
end
module ConnectionState : _PgConnection
@owner_pid: ::Integer
@prepared_statements: ::Set[::String]
@prepared_statements_pid: ::Integer
@stale_statements: ::Set[::String]
def prepared_statements: () -> ::Set[::String]
def stale_statements: () -> ::Set[::String]
attr_accessor in_transaction: bool?
def self.extended: (untyped client) -> void
attr_accessor query_types: untyped
attr_accessor result_types: untyped
def typed: (untyped result) -> untyped
def inherited?: () -> bool
def detach_from_parent: () -> void
def release_parent_socket: () -> void
def self.after_fork: () -> void
module ForkHook
def _fork: () -> ::Integer
end
def close: () -> void
def finish: () -> void
end
class TransactionEnded < ::StandardError
end
class TransactionConnection
@client: untyped
@mutex: ::Thread::Mutex
def initialize: (untyped client) -> void
def with: [T] () { (untyped) -> T } -> T
def synchronize: [T] () { () -> T } -> T
def unlocked: [T] () { () -> T } -> T
def close: () -> void
private
def client: () -> untyped
end
module NewTypes
self.@map: untyped
@client: untyped
@known: untyped
@decoders: ::Hash[::Integer, untyped]
def self.map: (untyped client, untyped known) -> untyped
def self.decoder: (::Integer oid, ::String category, ::String delimiter) -> untyped
def initialize: (untyped client, untyped known) -> void
def typecast_result_value: (untyped result, ::Integer tuple, ::Integer field) -> untyped
private
def decoder: (::Integer oid) -> untyped
end
ISOLATION_LEVELS: ::Hash[::Symbol, ::String]
end