-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquery_sql.rbs
More file actions
106 lines (89 loc) · 2.37 KB
/
Copy pathquery_sql.rbs
File metadata and controls
106 lines (89 loc) · 2.37 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
94
95
96
97
98
99
100
101
102
103
104
105
106
# auto-generated by sqlc - do not edit
module PgCodegen
GetAuthorSql: String
class GetAuthorRow
attr_reader id: Integer
attr_reader name: String
attr_reader bio: String
def initialize: ( Integer id, String name, String bio) -> void
end
class GetAuthorArgs
attr_reader id: Integer
def initialize: ( Integer id) -> void
end
ListAuthorsSql: String
class ListAuthorsRow
attr_reader id: Integer
attr_reader name: String
attr_reader bio: String
def initialize: ( Integer id, String name, String bio) -> void
end
CreateAuthorSql: String
class CreateAuthorRow
attr_reader id: Integer
attr_reader name: String
attr_reader bio: String
def initialize: ( Integer id, String name, String bio) -> void
end
class CreateAuthorArgs
attr_reader name: String
attr_reader bio: String
def initialize: ( String name, String bio) -> void
end
DeleteAuthorSql: String
class DeleteAuthorArgs
attr_reader id: Integer
def initialize: ( Integer id) -> void
end
TestSql: String
class TestRow
attr_reader c_bit: Array[Integer]
attr_reader c_smallint: Integer
attr_reader c_boolean: bool
attr_reader c_integer: Integer
attr_reader c_bigint: Integer
attr_reader c_serial: Integer
attr_reader c_decimal: Float
attr_reader c_numeric: Float
attr_reader c_real: Float
attr_reader c_double_precision: Float
attr_reader c_date: String
attr_reader c_time: String
attr_reader c_timestamp: String
attr_reader c_char: String
attr_reader c_varchar: String
attr_reader c_bytea: Array[Integer]
attr_reader c_text: String
attr_reader c_json: String
def initialize: (
Array[Integer] c_bit,
Integer c_smallint,
bool c_boolean,
Integer c_integer,
Integer c_bigint,
Integer c_serial,
Float c_decimal,
Float c_numeric,
Float c_real,
Float c_double_precision,
String c_date,
String c_time,
String c_timestamp,
String c_char,
String c_varchar,
Array[Integer] c_bytea,
String c_text,
String c_json
) -> void
end
class QuerySql
@db: untyped
@prepared_statements: Set[String]
def initialize: (Hash[String, String], Hash[String, String]) -> void
def get_author: (GetAuthorArgs) -> GetAuthorRow?
def list_authors: -> void
def create_author: (CreateAuthorArgs) -> CreateAuthorRow?
def delete_author: (DeleteAuthorArgs) -> void
def test: -> TestRow?
end
end