-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquery_sql.rbs
More file actions
156 lines (134 loc) · 3.71 KB
/
query_sql.rbs
File metadata and controls
156 lines (134 loc) · 3.71 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# auto-generated by sqlc - do not edit
module Mysql2Codegen
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 CreateAuthorArgs
attr_reader name: String
attr_reader bio: String
def initialize: ( String name, String bio) -> void
end
UpdateAuthorSql: String
class UpdateAuthorArgs
attr_reader bio: String
attr_reader id: Integer
def initialize: ( String bio, Integer id) -> void
end
CreateAuthorReturnIdSql: String
class CreateAuthorReturnIdArgs
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_tinyint: Integer
attr_reader c_bool: Integer
attr_reader c_boolean: Integer
attr_reader c_smallint: Integer
attr_reader c_mediumint: Integer
attr_reader c_int: Integer
attr_reader c_integer: Integer
attr_reader c_bigint: Integer
attr_reader c_serial: Integer
attr_reader c_decimal: String
attr_reader c_dec: String
attr_reader c_numeric: String
attr_reader c_fixed: String
attr_reader c_float: Float
attr_reader c_double: Float
attr_reader c_double_precision: Float
attr_reader c_date: String
attr_reader c_time: String
attr_reader c_datetime: String
attr_reader c_timestamp: String
attr_reader c_year: Integer
attr_reader c_char: String
attr_reader c_nchar: String
attr_reader c_national_char: String
attr_reader c_varchar: String
attr_reader c_binary: Array[Integer]
attr_reader c_varbinary: Array[Integer]
attr_reader c_tinyblob: Array[Integer]
attr_reader c_tinytext: String
attr_reader c_blob: Array[Integer]
attr_reader c_text: String
attr_reader c_mediumblob: Array[Integer]
attr_reader c_mediumtext: String
attr_reader c_longblob: Array[Integer]
attr_reader c_longtext: String
attr_reader c_json: String
def initialize: (
Array[Integer] c_bit,
Integer c_tinyint,
Integer c_bool,
Integer c_boolean,
Integer c_smallint,
Integer c_mediumint,
Integer c_int,
Integer c_integer,
Integer c_bigint,
Integer c_serial,
String c_decimal,
String c_dec,
String c_numeric,
String c_fixed,
Float c_float,
Float c_double,
Float c_double_precision,
String c_date,
String c_time,
String c_datetime,
String c_timestamp,
Integer c_year,
String c_char,
String c_nchar,
String c_national_char,
String c_varchar,
Array[Integer] c_binary,
Array[Integer] c_varbinary,
Array[Integer] c_tinyblob,
String c_tinytext,
Array[Integer] c_blob,
String c_text,
Array[Integer] c_mediumblob,
String c_mediumtext,
Array[Integer] c_longblob,
String c_longtext,
String c_json
) -> void
end
class QuerySql
@db: untyped
def initialize: (Hash[String, String], Hash[String, String]) -> void
def get_author: (GetAuthorArgs) -> GetAuthorRow?
def list_authors: -> void
def create_author: (CreateAuthorArgs) -> void
def update_author: (UpdateAuthorArgs) -> void
def create_author_return_id: (CreateAuthorReturnIdArgs) -> Integer
def delete_author: (DeleteAuthorArgs) -> void
def test: -> TestRow?
end
end