Repository navigation
Expand file tree
/
Copy pathmodels.rb
More file actions
192 lines (160 loc) · 3.19 KB
/
Copy pathmodels.rb
File metadata and controls
192 lines (160 loc) · 3.19 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# frozen_string_literal: true
# auto-generated by sqlc - do not edit
module PgCodegen
module Step
BEGIN_ = 'begin'
END_ = 'end'
ALL_ = 'all'
BEGIN__2 = 'BEGIN'
NIL = 'nil'
SELF = 'self'
FILE = '__FILE__'
ALL = [BEGIN_, END_, ALL_, BEGIN__2, NIL, SELF, FILE].freeze
end
# Kinds of biographies.
module ExtendedBioType
AUTOBIOGRAPHY = 'Autobiography'
BIOGRAPHY = 'Biography'
MEMOIR = 'Memoir'
ALL = [AUTOBIOGRAPHY, BIOGRAPHY, MEMOIR].freeze
end
module LateMood
CALM = 'calm'
HAPPY = 'happy'
ALL = [CALM, HAPPY].freeze
end
# People who wrote at least one book.
class Author < ::Data.define(:id, :name, :bio)
end
class Book < ::Data.define(:id, :name, :author_id, :description)
end
class DeferredBook < ::Data.define(:id, :author_id)
end
class PostgresNumericType < ::Data.define(
:c_boolean,
:c_smallint,
:c_integer,
:c_bigint,
:c_serial,
:c_decimal,
:c_numeric,
:c_real,
:c_double_precision,
:c_money,
:c_oid,
:c_positive
)
end
class PostgresStringType < ::Data.define(
:c_char,
:c_varchar,
:c_text,
:c_not_null,
:c_xml,
:c_tsvector,
:c_ltree,
:c_hstore,
:c_regclass
)
end
class PostgresDatetimeType < ::Data.define(
:c_date,
:c_time,
:c_timetz,
:c_timestamp,
:c_timestamptz,
:c_interval
)
end
class PostgresJsonType < ::Data.define(:id, :c_json, :c_jsonb)
end
class PostgresArrayType < ::Data.define(
:id,
:c_boolean,
:c_double_precision,
:c_text_array,
:c_integer_array,
:c_uuid_array,
:c_bio_type_array,
:c_bytea_array,
:c_jsonb_array,
:c_numeric_array,
:c_timestamptz_array,
:c_integer_matrix,
:c_text_matrix
)
end
class PostgresSpecialType < ::Data.define(
:c_bytea,
:c_bit,
:c_varbit,
:c_uuid,
:c_inet,
:c_cidr,
:c_macaddr,
:c_point,
:c_int4range,
:c_dimensions
)
end
class Regression < ::Data.define(
:id,
:order,
:payload,
:doc,
:bio_types,
:uids,
:step
)
end
# rubocop:disable Naming/MethodName
class MixedCaseCopy < ::Data.define(:Id, :SomeValue)
end
# rubocop:enable Naming/MethodName
# rubocop:disable Naming/MethodName
class NameCase < ::Data.define(
:id,
:class_,
:end,
:hash_,
:method_,
:count,
:camelCase,
:HTTPServer,
:initialize_
)
end
# rubocop:enable Naming/MethodName
class Exception < ::Data.define(:id)
end
class StandardError < ::Data.define(:id)
end
class Thread < ::Data.define(:id)
end
class Process < ::Data.define(:id)
end
class Data < ::Data.define(:id)
end
class Struct < ::Data.define(:id)
end
class Set < ::Data.define(:id)
end
class String < ::Data.define(:id)
end
class Integer < ::Data.define(:id)
end
class Time < ::Data.define(:id)
end
class Encoding < ::Data.define(:id)
end
class Monitor < ::Data.define(:id)
end
class Mutex < ::Data.define(:id)
end
class ConnectionPool < ::Data.define(:id)
end
class ExtendedBio < ::Data.define(:author_name, :name, :bio_type)
end
class LateFeeling < ::Data.define(:id, :moods)
end
end