Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathcodegen.proto
More file actions
Latest commit
132 lines (114 loc) · 3.1 KB
/
Copy pathcodegen.proto
File metadata and controls
132 lines (114 loc) · 3.1 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
syntax="proto3";
packageplugin;
serviceCodegenService {
rpcGenerate (GenerateRequest) returns (GenerateResponse);
}
messageFile {
stringname=1 [json_name = "name"];
bytescontents=2 [json_name = "contents"];
}
messageSettings {
// Rename message was field 5
// Overides message was field 6
// PythonCode message was field 8
// KotlinCode message was field 9
// GoCode message was field 10;
// JSONCode message was field 11;
reserved5, 8, 9, 10, 11;
stringversion=1 [json_name = "version"];
stringengine=2 [json_name = "engine"];
repeatedstringschema=3 [json_name = "schema"];
repeatedstringqueries=4 [json_name = "queries"];
Codegencodegen=12 [json_name = "codegen"];
}
messageCodegen {
messageProcess {
stringcmd=1;
}
messageWASM {
stringurl=1;
stringsha256=2;
}
stringout=1 [json_name = "out"];
stringplugin=2 [json_name = "plugin"];
bytesoptions=3 [json_name = "options"];
repeatedstringenv=4 [json_name = "env"];
Processprocess=5 [json_name = "process"];
WASMwasm=6 [json_name = "wasm"];
}
messageCatalog {
stringcomment=1;
stringdefault_schema=2;
stringname=3;
repeatedSchemaschemas=4;
}
messageSchema {
stringcomment=1;
stringname=2;
repeatedTabletables=3;
repeatedEnumenums=4;
repeatedCompositeTypecomposite_types=5;
}
messageCompositeType {
stringname=1;
stringcomment=2;
}
messageEnum {
stringname=1;
repeatedstringvals=2;
stringcomment=3;
}
messageTable {
Identifierrel=1;
repeatedColumncolumns=2;
stringcomment=3;
}
messageIdentifier {
stringcatalog=1;
stringschema=2;
stringname=3;
}
messageColumn {
stringname=1;
boolnot_null=3;
boolis_array=4;
stringcomment=5;
int32length=6;
boolis_named_param=7;
boolis_func_call=8;
// XXX: Figure out what PostgreSQL calls `foo.id`
stringscope=9;
Identifiertable=10;
stringtable_alias=11;
Identifiertype=12;
boolis_sqlc_slice=13;
Identifierembed_table=14;
stringoriginal_name=15;
boolunsigned=16;
int32array_dims=17;
}
messageQuery {
stringtext=1 [json_name = "text"];
stringname=2 [json_name = "name"];
stringcmd=3 [json_name = "cmd"];
repeatedColumncolumns=4 [json_name = "columns"];
repeatedParameterparams=5 [json_name = "parameters"];
repeatedstringcomments=6 [json_name = "comments"];
stringfilename=7 [json_name = "filename"];
Identifierinsert_into_table=8 [json_name = "insert_into_table"];
}
messageParameter {
int32number=1 [json_name = "number"];
Columncolumn=2 [json_name = "column"];
}
messageGenerateRequest {
Settingssettings=1 [json_name = "settings"];
Catalogcatalog=2 [json_name = "catalog"];
repeatedQueryqueries=3 [json_name = "queries"];
stringsqlc_version=4 [json_name = "sqlc_version"];
bytesplugin_options=5 [json_name = "plugin_options"];
bytesglobal_options=6 [json_name = "global_options"];
}
messageGenerateResponse {
repeatedFilefiles=1 [json_name = "files"];
}