-
Notifications
You must be signed in to change notification settings - Fork 38
/
common.pb.go
1754 lines (1559 loc) · 61.8 KB
/
common.pb.go
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common.proto
package message
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Has to be consistent with Meta.StatementType
type StatementType int32
const (
StatementType_SELECT StatementType = 0
StatementType_INSERT StatementType = 1
StatementType_UPDATE StatementType = 2
StatementType_DELETE StatementType = 3
StatementType_UPSERT StatementType = 4
StatementType_MERGE StatementType = 5
StatementType_OTHER_DML StatementType = 6
StatementType_CREATE StatementType = 7
StatementType_DROP StatementType = 8
StatementType_ALTER StatementType = 9
StatementType_OTHER_DDL StatementType = 10
StatementType_CALL StatementType = 11
)
var StatementType_name = map[int32]string{
0: "SELECT",
1: "INSERT",
2: "UPDATE",
3: "DELETE",
4: "UPSERT",
5: "MERGE",
6: "OTHER_DML",
7: "CREATE",
8: "DROP",
9: "ALTER",
10: "OTHER_DDL",
11: "CALL",
}
var StatementType_value = map[string]int32{
"SELECT": 0,
"INSERT": 1,
"UPDATE": 2,
"DELETE": 3,
"UPSERT": 4,
"MERGE": 5,
"OTHER_DML": 6,
"CREATE": 7,
"DROP": 8,
"ALTER": 9,
"OTHER_DDL": 10,
"CALL": 11,
}
func (x StatementType) String() string {
return proto.EnumName(StatementType_name, int32(x))
}
func (StatementType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{0}
}
type Rep int32
const (
Rep_PRIMITIVE_BOOLEAN Rep = 0
Rep_PRIMITIVE_BYTE Rep = 1
Rep_PRIMITIVE_CHAR Rep = 2
Rep_PRIMITIVE_SHORT Rep = 3
Rep_PRIMITIVE_INT Rep = 4
Rep_PRIMITIVE_LONG Rep = 5
Rep_PRIMITIVE_FLOAT Rep = 6
Rep_PRIMITIVE_DOUBLE Rep = 7
Rep_BOOLEAN Rep = 8
Rep_BYTE Rep = 9
Rep_CHARACTER Rep = 10
Rep_SHORT Rep = 11
Rep_INTEGER Rep = 12
Rep_LONG Rep = 13
Rep_FLOAT Rep = 14
Rep_DOUBLE Rep = 15
Rep_BIG_INTEGER Rep = 25
Rep_BIG_DECIMAL Rep = 26
Rep_JAVA_SQL_TIME Rep = 16
Rep_JAVA_SQL_TIMESTAMP Rep = 17
Rep_JAVA_SQL_DATE Rep = 18
Rep_JAVA_UTIL_DATE Rep = 19
Rep_BYTE_STRING Rep = 20
Rep_STRING Rep = 21
Rep_NUMBER Rep = 22
Rep_OBJECT Rep = 23
Rep_NULL Rep = 24
Rep_ARRAY Rep = 27
Rep_STRUCT Rep = 28
Rep_MULTISET Rep = 29
)
var Rep_name = map[int32]string{
0: "PRIMITIVE_BOOLEAN",
1: "PRIMITIVE_BYTE",
2: "PRIMITIVE_CHAR",
3: "PRIMITIVE_SHORT",
4: "PRIMITIVE_INT",
5: "PRIMITIVE_LONG",
6: "PRIMITIVE_FLOAT",
7: "PRIMITIVE_DOUBLE",
8: "BOOLEAN",
9: "BYTE",
10: "CHARACTER",
11: "SHORT",
12: "INTEGER",
13: "LONG",
14: "FLOAT",
15: "DOUBLE",
25: "BIG_INTEGER",
26: "BIG_DECIMAL",
16: "JAVA_SQL_TIME",
17: "JAVA_SQL_TIMESTAMP",
18: "JAVA_SQL_DATE",
19: "JAVA_UTIL_DATE",
20: "BYTE_STRING",
21: "STRING",
22: "NUMBER",
23: "OBJECT",
24: "NULL",
27: "ARRAY",
28: "STRUCT",
29: "MULTISET",
}
var Rep_value = map[string]int32{
"PRIMITIVE_BOOLEAN": 0,
"PRIMITIVE_BYTE": 1,
"PRIMITIVE_CHAR": 2,
"PRIMITIVE_SHORT": 3,
"PRIMITIVE_INT": 4,
"PRIMITIVE_LONG": 5,
"PRIMITIVE_FLOAT": 6,
"PRIMITIVE_DOUBLE": 7,
"BOOLEAN": 8,
"BYTE": 9,
"CHARACTER": 10,
"SHORT": 11,
"INTEGER": 12,
"LONG": 13,
"FLOAT": 14,
"DOUBLE": 15,
"BIG_INTEGER": 25,
"BIG_DECIMAL": 26,
"JAVA_SQL_TIME": 16,
"JAVA_SQL_TIMESTAMP": 17,
"JAVA_SQL_DATE": 18,
"JAVA_UTIL_DATE": 19,
"BYTE_STRING": 20,
"STRING": 21,
"NUMBER": 22,
"OBJECT": 23,
"NULL": 24,
"ARRAY": 27,
"STRUCT": 28,
"MULTISET": 29,
}
func (x Rep) String() string {
return proto.EnumName(Rep_name, int32(x))
}
func (Rep) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{1}
}
// The severity of some unexpected outcome to an operation.
// Protobuf enum values must be unique across all other enums
type Severity int32
const (
Severity_UNKNOWN_SEVERITY Severity = 0
Severity_FATAL_SEVERITY Severity = 1
Severity_ERROR_SEVERITY Severity = 2
Severity_WARNING_SEVERITY Severity = 3
)
var Severity_name = map[int32]string{
0: "UNKNOWN_SEVERITY",
1: "FATAL_SEVERITY",
2: "ERROR_SEVERITY",
3: "WARNING_SEVERITY",
}
var Severity_value = map[string]int32{
"UNKNOWN_SEVERITY": 0,
"FATAL_SEVERITY": 1,
"ERROR_SEVERITY": 2,
"WARNING_SEVERITY": 3,
}
func (x Severity) String() string {
return proto.EnumName(Severity_name, int32(x))
}
func (Severity) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{2}
}
// Enumeration corresponding to DatabaseMetaData operations
type MetaDataOperation int32
const (
MetaDataOperation_GET_ATTRIBUTES MetaDataOperation = 0
MetaDataOperation_GET_BEST_ROW_IDENTIFIER MetaDataOperation = 1
MetaDataOperation_GET_CATALOGS MetaDataOperation = 2
MetaDataOperation_GET_CLIENT_INFO_PROPERTIES MetaDataOperation = 3
MetaDataOperation_GET_COLUMN_PRIVILEGES MetaDataOperation = 4
MetaDataOperation_GET_COLUMNS MetaDataOperation = 5
MetaDataOperation_GET_CROSS_REFERENCE MetaDataOperation = 6
MetaDataOperation_GET_EXPORTED_KEYS MetaDataOperation = 7
MetaDataOperation_GET_FUNCTION_COLUMNS MetaDataOperation = 8
MetaDataOperation_GET_FUNCTIONS MetaDataOperation = 9
MetaDataOperation_GET_IMPORTED_KEYS MetaDataOperation = 10
MetaDataOperation_GET_INDEX_INFO MetaDataOperation = 11
MetaDataOperation_GET_PRIMARY_KEYS MetaDataOperation = 12
MetaDataOperation_GET_PROCEDURE_COLUMNS MetaDataOperation = 13
MetaDataOperation_GET_PROCEDURES MetaDataOperation = 14
MetaDataOperation_GET_PSEUDO_COLUMNS MetaDataOperation = 15
MetaDataOperation_GET_SCHEMAS MetaDataOperation = 16
MetaDataOperation_GET_SCHEMAS_WITH_ARGS MetaDataOperation = 17
MetaDataOperation_GET_SUPER_TABLES MetaDataOperation = 18
MetaDataOperation_GET_SUPER_TYPES MetaDataOperation = 19
MetaDataOperation_GET_TABLE_PRIVILEGES MetaDataOperation = 20
MetaDataOperation_GET_TABLES MetaDataOperation = 21
MetaDataOperation_GET_TABLE_TYPES MetaDataOperation = 22
MetaDataOperation_GET_TYPE_INFO MetaDataOperation = 23
MetaDataOperation_GET_UDTS MetaDataOperation = 24
MetaDataOperation_GET_VERSION_COLUMNS MetaDataOperation = 25
)
var MetaDataOperation_name = map[int32]string{
0: "GET_ATTRIBUTES",
1: "GET_BEST_ROW_IDENTIFIER",
2: "GET_CATALOGS",
3: "GET_CLIENT_INFO_PROPERTIES",
4: "GET_COLUMN_PRIVILEGES",
5: "GET_COLUMNS",
6: "GET_CROSS_REFERENCE",
7: "GET_EXPORTED_KEYS",
8: "GET_FUNCTION_COLUMNS",
9: "GET_FUNCTIONS",
10: "GET_IMPORTED_KEYS",
11: "GET_INDEX_INFO",
12: "GET_PRIMARY_KEYS",
13: "GET_PROCEDURE_COLUMNS",
14: "GET_PROCEDURES",
15: "GET_PSEUDO_COLUMNS",
16: "GET_SCHEMAS",
17: "GET_SCHEMAS_WITH_ARGS",
18: "GET_SUPER_TABLES",
19: "GET_SUPER_TYPES",
20: "GET_TABLE_PRIVILEGES",
21: "GET_TABLES",
22: "GET_TABLE_TYPES",
23: "GET_TYPE_INFO",
24: "GET_UDTS",
25: "GET_VERSION_COLUMNS",
}
var MetaDataOperation_value = map[string]int32{
"GET_ATTRIBUTES": 0,
"GET_BEST_ROW_IDENTIFIER": 1,
"GET_CATALOGS": 2,
"GET_CLIENT_INFO_PROPERTIES": 3,
"GET_COLUMN_PRIVILEGES": 4,
"GET_COLUMNS": 5,
"GET_CROSS_REFERENCE": 6,
"GET_EXPORTED_KEYS": 7,
"GET_FUNCTION_COLUMNS": 8,
"GET_FUNCTIONS": 9,
"GET_IMPORTED_KEYS": 10,
"GET_INDEX_INFO": 11,
"GET_PRIMARY_KEYS": 12,
"GET_PROCEDURE_COLUMNS": 13,
"GET_PROCEDURES": 14,
"GET_PSEUDO_COLUMNS": 15,
"GET_SCHEMAS": 16,
"GET_SCHEMAS_WITH_ARGS": 17,
"GET_SUPER_TABLES": 18,
"GET_SUPER_TYPES": 19,
"GET_TABLE_PRIVILEGES": 20,
"GET_TABLES": 21,
"GET_TABLE_TYPES": 22,
"GET_TYPE_INFO": 23,
"GET_UDTS": 24,
"GET_VERSION_COLUMNS": 25,
}
func (x MetaDataOperation) String() string {
return proto.EnumName(MetaDataOperation_name, int32(x))
}
func (MetaDataOperation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{3}
}
type StateType int32
const (
StateType_SQL StateType = 0
StateType_METADATA StateType = 1
)
var StateType_name = map[int32]string{
0: "SQL",
1: "METADATA",
}
var StateType_value = map[string]int32{
"SQL": 0,
"METADATA": 1,
}
func (x StateType) String() string {
return proto.EnumName(StateType_name, int32(x))
}
func (StateType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{4}
}
type CursorFactory_Style int32
const (
CursorFactory_OBJECT CursorFactory_Style = 0
CursorFactory_RECORD CursorFactory_Style = 1
CursorFactory_RECORD_PROJECTION CursorFactory_Style = 2
CursorFactory_ARRAY CursorFactory_Style = 3
CursorFactory_LIST CursorFactory_Style = 4
CursorFactory_MAP CursorFactory_Style = 5
)
var CursorFactory_Style_name = map[int32]string{
0: "OBJECT",
1: "RECORD",
2: "RECORD_PROJECTION",
3: "ARRAY",
4: "LIST",
5: "MAP",
}
var CursorFactory_Style_value = map[string]int32{
"OBJECT": 0,
"RECORD": 1,
"RECORD_PROJECTION": 2,
"ARRAY": 3,
"LIST": 4,
"MAP": 5,
}
func (x CursorFactory_Style) String() string {
return proto.EnumName(CursorFactory_Style_name, int32(x))
}
func (CursorFactory_Style) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{6, 0}
}
type MetaDataOperationArgument_ArgumentType int32
const (
MetaDataOperationArgument_STRING MetaDataOperationArgument_ArgumentType = 0
MetaDataOperationArgument_BOOL MetaDataOperationArgument_ArgumentType = 1
MetaDataOperationArgument_INT MetaDataOperationArgument_ArgumentType = 2
MetaDataOperationArgument_REPEATED_STRING MetaDataOperationArgument_ArgumentType = 3
MetaDataOperationArgument_REPEATED_INT MetaDataOperationArgument_ArgumentType = 4
MetaDataOperationArgument_NULL MetaDataOperationArgument_ArgumentType = 5
)
var MetaDataOperationArgument_ArgumentType_name = map[int32]string{
0: "STRING",
1: "BOOL",
2: "INT",
3: "REPEATED_STRING",
4: "REPEATED_INT",
5: "NULL",
}
var MetaDataOperationArgument_ArgumentType_value = map[string]int32{
"STRING": 0,
"BOOL": 1,
"INT": 2,
"REPEATED_STRING": 3,
"REPEATED_INT": 4,
"NULL": 5,
}
func (x MetaDataOperationArgument_ArgumentType) String() string {
return proto.EnumName(MetaDataOperationArgument_ArgumentType_name, int32(x))
}
func (MetaDataOperationArgument_ArgumentType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{13, 0}
}
// Details about a connection
type ConnectionProperties struct {
IsDirty bool `protobuf:"varint,1,opt,name=is_dirty,json=isDirty,proto3" json:"is_dirty,omitempty"`
AutoCommit bool `protobuf:"varint,2,opt,name=auto_commit,json=autoCommit,proto3" json:"auto_commit,omitempty"`
HasAutoCommit bool `protobuf:"varint,7,opt,name=has_auto_commit,json=hasAutoCommit,proto3" json:"has_auto_commit,omitempty"`
ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
HasReadOnly bool `protobuf:"varint,8,opt,name=has_read_only,json=hasReadOnly,proto3" json:"has_read_only,omitempty"`
TransactionIsolation uint32 `protobuf:"varint,4,opt,name=transaction_isolation,json=transactionIsolation,proto3" json:"transaction_isolation,omitempty"`
Catalog string `protobuf:"bytes,5,opt,name=catalog,proto3" json:"catalog,omitempty"`
Schema string `protobuf:"bytes,6,opt,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConnectionProperties) Reset() { *m = ConnectionProperties{} }
func (m *ConnectionProperties) String() string { return proto.CompactTextString(m) }
func (*ConnectionProperties) ProtoMessage() {}
func (*ConnectionProperties) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{0}
}
func (m *ConnectionProperties) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConnectionProperties.Unmarshal(m, b)
}
func (m *ConnectionProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConnectionProperties.Marshal(b, m, deterministic)
}
func (m *ConnectionProperties) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConnectionProperties.Merge(m, src)
}
func (m *ConnectionProperties) XXX_Size() int {
return xxx_messageInfo_ConnectionProperties.Size(m)
}
func (m *ConnectionProperties) XXX_DiscardUnknown() {
xxx_messageInfo_ConnectionProperties.DiscardUnknown(m)
}
var xxx_messageInfo_ConnectionProperties proto.InternalMessageInfo
func (m *ConnectionProperties) GetIsDirty() bool {
if m != nil {
return m.IsDirty
}
return false
}
func (m *ConnectionProperties) GetAutoCommit() bool {
if m != nil {
return m.AutoCommit
}
return false
}
func (m *ConnectionProperties) GetHasAutoCommit() bool {
if m != nil {
return m.HasAutoCommit
}
return false
}
func (m *ConnectionProperties) GetReadOnly() bool {
if m != nil {
return m.ReadOnly
}
return false
}
func (m *ConnectionProperties) GetHasReadOnly() bool {
if m != nil {
return m.HasReadOnly
}
return false
}
func (m *ConnectionProperties) GetTransactionIsolation() uint32 {
if m != nil {
return m.TransactionIsolation
}
return 0
}
func (m *ConnectionProperties) GetCatalog() string {
if m != nil {
return m.Catalog
}
return ""
}
func (m *ConnectionProperties) GetSchema() string {
if m != nil {
return m.Schema
}
return ""
}
// Statement handle
type StatementHandle struct {
ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Signature *Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StatementHandle) Reset() { *m = StatementHandle{} }
func (m *StatementHandle) String() string { return proto.CompactTextString(m) }
func (*StatementHandle) ProtoMessage() {}
func (*StatementHandle) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{1}
}
func (m *StatementHandle) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StatementHandle.Unmarshal(m, b)
}
func (m *StatementHandle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StatementHandle.Marshal(b, m, deterministic)
}
func (m *StatementHandle) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatementHandle.Merge(m, src)
}
func (m *StatementHandle) XXX_Size() int {
return xxx_messageInfo_StatementHandle.Size(m)
}
func (m *StatementHandle) XXX_DiscardUnknown() {
xxx_messageInfo_StatementHandle.DiscardUnknown(m)
}
var xxx_messageInfo_StatementHandle proto.InternalMessageInfo
func (m *StatementHandle) GetConnectionId() string {
if m != nil {
return m.ConnectionId
}
return ""
}
func (m *StatementHandle) GetId() uint32 {
if m != nil {
return m.Id
}
return 0
}
func (m *StatementHandle) GetSignature() *Signature {
if m != nil {
return m.Signature
}
return nil
}
// Results of preparing a statement
type Signature struct {
Columns []*ColumnMetaData `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
Sql string `protobuf:"bytes,2,opt,name=sql,proto3" json:"sql,omitempty"`
Parameters []*AvaticaParameter `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty"`
CursorFactory *CursorFactory `protobuf:"bytes,4,opt,name=cursor_factory,json=cursorFactory,proto3" json:"cursor_factory,omitempty"`
StatementType StatementType `protobuf:"varint,5,opt,name=statementType,proto3,enum=StatementType" json:"statementType,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Signature) Reset() { *m = Signature{} }
func (m *Signature) String() string { return proto.CompactTextString(m) }
func (*Signature) ProtoMessage() {}
func (*Signature) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{2}
}
func (m *Signature) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Signature.Unmarshal(m, b)
}
func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Signature.Marshal(b, m, deterministic)
}
func (m *Signature) XXX_Merge(src proto.Message) {
xxx_messageInfo_Signature.Merge(m, src)
}
func (m *Signature) XXX_Size() int {
return xxx_messageInfo_Signature.Size(m)
}
func (m *Signature) XXX_DiscardUnknown() {
xxx_messageInfo_Signature.DiscardUnknown(m)
}
var xxx_messageInfo_Signature proto.InternalMessageInfo
func (m *Signature) GetColumns() []*ColumnMetaData {
if m != nil {
return m.Columns
}
return nil
}
func (m *Signature) GetSql() string {
if m != nil {
return m.Sql
}
return ""
}
func (m *Signature) GetParameters() []*AvaticaParameter {
if m != nil {
return m.Parameters
}
return nil
}
func (m *Signature) GetCursorFactory() *CursorFactory {
if m != nil {
return m.CursorFactory
}
return nil
}
func (m *Signature) GetStatementType() StatementType {
if m != nil {
return m.StatementType
}
return StatementType_SELECT
}
type ColumnMetaData struct {
Ordinal uint32 `protobuf:"varint,1,opt,name=ordinal,proto3" json:"ordinal,omitempty"`
AutoIncrement bool `protobuf:"varint,2,opt,name=auto_increment,json=autoIncrement,proto3" json:"auto_increment,omitempty"`
CaseSensitive bool `protobuf:"varint,3,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
Searchable bool `protobuf:"varint,4,opt,name=searchable,proto3" json:"searchable,omitempty"`
Currency bool `protobuf:"varint,5,opt,name=currency,proto3" json:"currency,omitempty"`
Nullable uint32 `protobuf:"varint,6,opt,name=nullable,proto3" json:"nullable,omitempty"`
Signed bool `protobuf:"varint,7,opt,name=signed,proto3" json:"signed,omitempty"`
DisplaySize uint32 `protobuf:"varint,8,opt,name=display_size,json=displaySize,proto3" json:"display_size,omitempty"`
Label string `protobuf:"bytes,9,opt,name=label,proto3" json:"label,omitempty"`
ColumnName string `protobuf:"bytes,10,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
SchemaName string `protobuf:"bytes,11,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"`
Precision uint32 `protobuf:"varint,12,opt,name=precision,proto3" json:"precision,omitempty"`
Scale uint32 `protobuf:"varint,13,opt,name=scale,proto3" json:"scale,omitempty"`
TableName string `protobuf:"bytes,14,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
CatalogName string `protobuf:"bytes,15,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"`
ReadOnly bool `protobuf:"varint,16,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
Writable bool `protobuf:"varint,17,opt,name=writable,proto3" json:"writable,omitempty"`
DefinitelyWritable bool `protobuf:"varint,18,opt,name=definitely_writable,json=definitelyWritable,proto3" json:"definitely_writable,omitempty"`
ColumnClassName string `protobuf:"bytes,19,opt,name=column_class_name,json=columnClassName,proto3" json:"column_class_name,omitempty"`
Type *AvaticaType `protobuf:"bytes,20,opt,name=type,proto3" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ColumnMetaData) Reset() { *m = ColumnMetaData{} }
func (m *ColumnMetaData) String() string { return proto.CompactTextString(m) }
func (*ColumnMetaData) ProtoMessage() {}
func (*ColumnMetaData) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{3}
}
func (m *ColumnMetaData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ColumnMetaData.Unmarshal(m, b)
}
func (m *ColumnMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ColumnMetaData.Marshal(b, m, deterministic)
}
func (m *ColumnMetaData) XXX_Merge(src proto.Message) {
xxx_messageInfo_ColumnMetaData.Merge(m, src)
}
func (m *ColumnMetaData) XXX_Size() int {
return xxx_messageInfo_ColumnMetaData.Size(m)
}
func (m *ColumnMetaData) XXX_DiscardUnknown() {
xxx_messageInfo_ColumnMetaData.DiscardUnknown(m)
}
var xxx_messageInfo_ColumnMetaData proto.InternalMessageInfo
func (m *ColumnMetaData) GetOrdinal() uint32 {
if m != nil {
return m.Ordinal
}
return 0
}
func (m *ColumnMetaData) GetAutoIncrement() bool {
if m != nil {
return m.AutoIncrement
}
return false
}
func (m *ColumnMetaData) GetCaseSensitive() bool {
if m != nil {
return m.CaseSensitive
}
return false
}
func (m *ColumnMetaData) GetSearchable() bool {
if m != nil {
return m.Searchable
}
return false
}
func (m *ColumnMetaData) GetCurrency() bool {
if m != nil {
return m.Currency
}
return false
}
func (m *ColumnMetaData) GetNullable() uint32 {
if m != nil {
return m.Nullable
}
return 0
}
func (m *ColumnMetaData) GetSigned() bool {
if m != nil {
return m.Signed
}
return false
}
func (m *ColumnMetaData) GetDisplaySize() uint32 {
if m != nil {
return m.DisplaySize
}
return 0
}
func (m *ColumnMetaData) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
func (m *ColumnMetaData) GetColumnName() string {
if m != nil {
return m.ColumnName
}
return ""
}
func (m *ColumnMetaData) GetSchemaName() string {
if m != nil {
return m.SchemaName
}
return ""
}
func (m *ColumnMetaData) GetPrecision() uint32 {
if m != nil {
return m.Precision
}
return 0
}
func (m *ColumnMetaData) GetScale() uint32 {
if m != nil {
return m.Scale
}
return 0
}
func (m *ColumnMetaData) GetTableName() string {
if m != nil {
return m.TableName
}
return ""
}
func (m *ColumnMetaData) GetCatalogName() string {
if m != nil {
return m.CatalogName
}
return ""
}
func (m *ColumnMetaData) GetReadOnly() bool {
if m != nil {
return m.ReadOnly
}
return false
}
func (m *ColumnMetaData) GetWritable() bool {
if m != nil {
return m.Writable
}
return false
}
func (m *ColumnMetaData) GetDefinitelyWritable() bool {
if m != nil {
return m.DefinitelyWritable
}
return false
}
func (m *ColumnMetaData) GetColumnClassName() string {
if m != nil {
return m.ColumnClassName
}
return ""
}
func (m *ColumnMetaData) GetType() *AvaticaType {
if m != nil {
return m.Type
}
return nil
}
// Base class for a column type
type AvaticaType struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Rep Rep `protobuf:"varint,3,opt,name=rep,proto3,enum=Rep" json:"rep,omitempty"`
Columns []*ColumnMetaData `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
Component *AvaticaType `protobuf:"bytes,5,opt,name=component,proto3" json:"component,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AvaticaType) Reset() { *m = AvaticaType{} }
func (m *AvaticaType) String() string { return proto.CompactTextString(m) }
func (*AvaticaType) ProtoMessage() {}
func (*AvaticaType) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{4}
}
func (m *AvaticaType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AvaticaType.Unmarshal(m, b)
}
func (m *AvaticaType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AvaticaType.Marshal(b, m, deterministic)
}
func (m *AvaticaType) XXX_Merge(src proto.Message) {
xxx_messageInfo_AvaticaType.Merge(m, src)
}
func (m *AvaticaType) XXX_Size() int {
return xxx_messageInfo_AvaticaType.Size(m)
}
func (m *AvaticaType) XXX_DiscardUnknown() {
xxx_messageInfo_AvaticaType.DiscardUnknown(m)
}
var xxx_messageInfo_AvaticaType proto.InternalMessageInfo
func (m *AvaticaType) GetId() uint32 {
if m != nil {
return m.Id
}
return 0
}
func (m *AvaticaType) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *AvaticaType) GetRep() Rep {
if m != nil {
return m.Rep
}
return Rep_PRIMITIVE_BOOLEAN
}
func (m *AvaticaType) GetColumns() []*ColumnMetaData {
if m != nil {
return m.Columns
}
return nil
}
func (m *AvaticaType) GetComponent() *AvaticaType {
if m != nil {
return m.Component
}
return nil
}
// Metadata for a parameter
type AvaticaParameter struct {
Signed bool `protobuf:"varint,1,opt,name=signed,proto3" json:"signed,omitempty"`
Precision uint32 `protobuf:"varint,2,opt,name=precision,proto3" json:"precision,omitempty"`
Scale uint32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"`
ParameterType uint32 `protobuf:"varint,4,opt,name=parameter_type,json=parameterType,proto3" json:"parameter_type,omitempty"`
TypeName string `protobuf:"bytes,5,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
ClassName string `protobuf:"bytes,6,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"`
Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AvaticaParameter) Reset() { *m = AvaticaParameter{} }
func (m *AvaticaParameter) String() string { return proto.CompactTextString(m) }
func (*AvaticaParameter) ProtoMessage() {}
func (*AvaticaParameter) Descriptor() ([]byte, []int) {
return fileDescriptor_555bd8c177793206, []int{5}
}
func (m *AvaticaParameter) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AvaticaParameter.Unmarshal(m, b)
}
func (m *AvaticaParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AvaticaParameter.Marshal(b, m, deterministic)
}
func (m *AvaticaParameter) XXX_Merge(src proto.Message) {
xxx_messageInfo_AvaticaParameter.Merge(m, src)
}
func (m *AvaticaParameter) XXX_Size() int {
return xxx_messageInfo_AvaticaParameter.Size(m)
}
func (m *AvaticaParameter) XXX_DiscardUnknown() {
xxx_messageInfo_AvaticaParameter.DiscardUnknown(m)
}
var xxx_messageInfo_AvaticaParameter proto.InternalMessageInfo
func (m *AvaticaParameter) GetSigned() bool {
if m != nil {
return m.Signed
}
return false
}
func (m *AvaticaParameter) GetPrecision() uint32 {
if m != nil {
return m.Precision
}
return 0
}
func (m *AvaticaParameter) GetScale() uint32 {
if m != nil {
return m.Scale
}
return 0
}
func (m *AvaticaParameter) GetParameterType() uint32 {
if m != nil {
return m.ParameterType
}
return 0
}
func (m *AvaticaParameter) GetTypeName() string {
if m != nil {
return m.TypeName
}
return ""
}
func (m *AvaticaParameter) GetClassName() string {
if m != nil {
return m.ClassName
}
return ""
}
func (m *AvaticaParameter) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Information necessary to convert an Iterable into a Calcite Cursor
type CursorFactory struct {
Style CursorFactory_Style `protobuf:"varint,1,opt,name=style,proto3,enum=CursorFactory_Style" json:"style,omitempty"`
ClassName string `protobuf:"bytes,2,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"`
FieldNames []string `protobuf:"bytes,3,rep,name=field_names,json=fieldNames,proto3" json:"field_names,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`