@514labs/moose-proto 0.6.501 → 0.6.502
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -994,11 +994,81 @@ interface Table {
|
|
|
994
994
|
* @generated from protobuf field: optional moose.proto.SeedFilter seed_filter = 22
|
|
995
995
|
*/
|
|
996
996
|
seedFilter?: SeedFilter;
|
|
997
|
+
/**
|
|
998
|
+
* Table-level constraints
|
|
999
|
+
*
|
|
1000
|
+
* @generated from protobuf field: repeated moose.proto.TableConstraint constraints = 23
|
|
1001
|
+
*/
|
|
1002
|
+
constraints: TableConstraint[];
|
|
997
1003
|
}
|
|
998
1004
|
/**
|
|
999
1005
|
* @generated MessageType for protobuf message moose.proto.Table
|
|
1000
1006
|
*/
|
|
1001
1007
|
declare const Table: Table$Type;
|
|
1008
|
+
declare class TableProjection$Type extends MessageType<TableProjection> {
|
|
1009
|
+
constructor();
|
|
1010
|
+
create(value?: PartialMessage<TableProjection>): TableProjection;
|
|
1011
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TableProjection): TableProjection;
|
|
1012
|
+
internalBinaryWrite(message: TableProjection, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* DB-neutral representation of a table projection
|
|
1016
|
+
*
|
|
1017
|
+
* @generated from protobuf message moose.proto.TableProjection
|
|
1018
|
+
*/
|
|
1019
|
+
interface TableProjection {
|
|
1020
|
+
/**
|
|
1021
|
+
* The projection identifier as it appears after `PROJECTION` in the DDL
|
|
1022
|
+
*
|
|
1023
|
+
* @generated from protobuf field: string name = 1
|
|
1024
|
+
*/
|
|
1025
|
+
name: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* The parenthesised body (without the outer parentheses)
|
|
1028
|
+
*
|
|
1029
|
+
* @generated from protobuf field: string body = 2
|
|
1030
|
+
*/
|
|
1031
|
+
body: string;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* @generated MessageType for protobuf message moose.proto.TableProjection
|
|
1035
|
+
*/
|
|
1036
|
+
declare const TableProjection: TableProjection$Type;
|
|
1037
|
+
declare class TableConstraint$Type extends MessageType<TableConstraint> {
|
|
1038
|
+
constructor();
|
|
1039
|
+
create(value?: PartialMessage<TableConstraint>): TableConstraint;
|
|
1040
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TableConstraint): TableConstraint;
|
|
1041
|
+
internalBinaryWrite(message: TableConstraint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* DB-neutral representation of a table constraint
|
|
1045
|
+
*
|
|
1046
|
+
* @generated from protobuf message moose.proto.TableConstraint
|
|
1047
|
+
*/
|
|
1048
|
+
interface TableConstraint {
|
|
1049
|
+
/**
|
|
1050
|
+
* The unique identifier or name of the constraint
|
|
1051
|
+
*
|
|
1052
|
+
* @generated from protobuf field: string name = 1
|
|
1053
|
+
*/
|
|
1054
|
+
name: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* The SQL or logical expression enforcing the constraint condition
|
|
1057
|
+
*
|
|
1058
|
+
* @generated from protobuf field: string expression = 2
|
|
1059
|
+
*/
|
|
1060
|
+
expression: string;
|
|
1061
|
+
/**
|
|
1062
|
+
* The category of the constraint (e.g., "CHECK", "ASSUME")
|
|
1063
|
+
*
|
|
1064
|
+
* @generated from protobuf field: string constraint_type = 3
|
|
1065
|
+
*/
|
|
1066
|
+
constraintType: string;
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* @generated MessageType for protobuf message moose.proto.TableConstraint
|
|
1070
|
+
*/
|
|
1071
|
+
declare const TableConstraint: TableConstraint$Type;
|
|
1002
1072
|
declare class OrderBy$Type extends MessageType<OrderBy> {
|
|
1003
1073
|
constructor();
|
|
1004
1074
|
create(value?: PartialMessage<OrderBy>): OrderBy;
|
|
@@ -1006,7 +1076,6 @@ declare class OrderBy$Type extends MessageType<OrderBy> {
|
|
|
1006
1076
|
internalBinaryWrite(message: OrderBy, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1007
1077
|
}
|
|
1008
1078
|
/**
|
|
1009
|
-
* Structured representation of ORDER BY to support either explicit fields
|
|
1010
1079
|
* or an arbitrary ClickHouse SQL expression.
|
|
1011
1080
|
*
|
|
1012
1081
|
* @generated from protobuf message moose.proto.OrderBy
|
|
@@ -1124,31 +1193,6 @@ interface SeedFilter {
|
|
|
1124
1193
|
* @generated MessageType for protobuf message moose.proto.SeedFilter
|
|
1125
1194
|
*/
|
|
1126
1195
|
declare const SeedFilter: SeedFilter$Type;
|
|
1127
|
-
declare class TableProjection$Type extends MessageType<TableProjection> {
|
|
1128
|
-
constructor();
|
|
1129
|
-
create(value?: PartialMessage<TableProjection>): TableProjection;
|
|
1130
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TableProjection): TableProjection;
|
|
1131
|
-
internalBinaryWrite(message: TableProjection, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1132
|
-
}
|
|
1133
|
-
/**
|
|
1134
|
-
* DB-neutral representation of a table projection
|
|
1135
|
-
*
|
|
1136
|
-
* @generated from protobuf message moose.proto.TableProjection
|
|
1137
|
-
*/
|
|
1138
|
-
interface TableProjection {
|
|
1139
|
-
/**
|
|
1140
|
-
* @generated from protobuf field: string name = 1
|
|
1141
|
-
*/
|
|
1142
|
-
name: string;
|
|
1143
|
-
/**
|
|
1144
|
-
* @generated from protobuf field: string body = 2
|
|
1145
|
-
*/
|
|
1146
|
-
body: string;
|
|
1147
|
-
}
|
|
1148
|
-
/**
|
|
1149
|
-
* @generated MessageType for protobuf message moose.proto.TableProjection
|
|
1150
|
-
*/
|
|
1151
|
-
declare const TableProjection: TableProjection$Type;
|
|
1152
1196
|
declare class Dmv1View$Type extends MessageType<Dmv1View> {
|
|
1153
1197
|
constructor();
|
|
1154
1198
|
create(value?: PartialMessage<Dmv1View>): Dmv1View;
|
|
@@ -2295,4 +2339,4 @@ interface SelectRowPolicy {
|
|
|
2295
2339
|
*/
|
|
2296
2340
|
declare const SelectRowPolicy: SelectRowPolicy$Type;
|
|
2297
2341
|
|
|
2298
|
-
export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SeedFilter, SelectQuery, SelectRowPolicy, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableIndex, TableProjection, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
|
|
2342
|
+
export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SeedFilter, SelectQuery, SelectRowPolicy, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableConstraint, TableIndex, TableProjection, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
|
|
@@ -994,11 +994,81 @@ interface Table {
|
|
|
994
994
|
* @generated from protobuf field: optional moose.proto.SeedFilter seed_filter = 22
|
|
995
995
|
*/
|
|
996
996
|
seedFilter?: SeedFilter;
|
|
997
|
+
/**
|
|
998
|
+
* Table-level constraints
|
|
999
|
+
*
|
|
1000
|
+
* @generated from protobuf field: repeated moose.proto.TableConstraint constraints = 23
|
|
1001
|
+
*/
|
|
1002
|
+
constraints: TableConstraint[];
|
|
997
1003
|
}
|
|
998
1004
|
/**
|
|
999
1005
|
* @generated MessageType for protobuf message moose.proto.Table
|
|
1000
1006
|
*/
|
|
1001
1007
|
declare const Table: Table$Type;
|
|
1008
|
+
declare class TableProjection$Type extends MessageType<TableProjection> {
|
|
1009
|
+
constructor();
|
|
1010
|
+
create(value?: PartialMessage<TableProjection>): TableProjection;
|
|
1011
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TableProjection): TableProjection;
|
|
1012
|
+
internalBinaryWrite(message: TableProjection, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* DB-neutral representation of a table projection
|
|
1016
|
+
*
|
|
1017
|
+
* @generated from protobuf message moose.proto.TableProjection
|
|
1018
|
+
*/
|
|
1019
|
+
interface TableProjection {
|
|
1020
|
+
/**
|
|
1021
|
+
* The projection identifier as it appears after `PROJECTION` in the DDL
|
|
1022
|
+
*
|
|
1023
|
+
* @generated from protobuf field: string name = 1
|
|
1024
|
+
*/
|
|
1025
|
+
name: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* The parenthesised body (without the outer parentheses)
|
|
1028
|
+
*
|
|
1029
|
+
* @generated from protobuf field: string body = 2
|
|
1030
|
+
*/
|
|
1031
|
+
body: string;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* @generated MessageType for protobuf message moose.proto.TableProjection
|
|
1035
|
+
*/
|
|
1036
|
+
declare const TableProjection: TableProjection$Type;
|
|
1037
|
+
declare class TableConstraint$Type extends MessageType<TableConstraint> {
|
|
1038
|
+
constructor();
|
|
1039
|
+
create(value?: PartialMessage<TableConstraint>): TableConstraint;
|
|
1040
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TableConstraint): TableConstraint;
|
|
1041
|
+
internalBinaryWrite(message: TableConstraint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* DB-neutral representation of a table constraint
|
|
1045
|
+
*
|
|
1046
|
+
* @generated from protobuf message moose.proto.TableConstraint
|
|
1047
|
+
*/
|
|
1048
|
+
interface TableConstraint {
|
|
1049
|
+
/**
|
|
1050
|
+
* The unique identifier or name of the constraint
|
|
1051
|
+
*
|
|
1052
|
+
* @generated from protobuf field: string name = 1
|
|
1053
|
+
*/
|
|
1054
|
+
name: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* The SQL or logical expression enforcing the constraint condition
|
|
1057
|
+
*
|
|
1058
|
+
* @generated from protobuf field: string expression = 2
|
|
1059
|
+
*/
|
|
1060
|
+
expression: string;
|
|
1061
|
+
/**
|
|
1062
|
+
* The category of the constraint (e.g., "CHECK", "ASSUME")
|
|
1063
|
+
*
|
|
1064
|
+
* @generated from protobuf field: string constraint_type = 3
|
|
1065
|
+
*/
|
|
1066
|
+
constraintType: string;
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* @generated MessageType for protobuf message moose.proto.TableConstraint
|
|
1070
|
+
*/
|
|
1071
|
+
declare const TableConstraint: TableConstraint$Type;
|
|
1002
1072
|
declare class OrderBy$Type extends MessageType<OrderBy> {
|
|
1003
1073
|
constructor();
|
|
1004
1074
|
create(value?: PartialMessage<OrderBy>): OrderBy;
|
|
@@ -1006,7 +1076,6 @@ declare class OrderBy$Type extends MessageType<OrderBy> {
|
|
|
1006
1076
|
internalBinaryWrite(message: OrderBy, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1007
1077
|
}
|
|
1008
1078
|
/**
|
|
1009
|
-
* Structured representation of ORDER BY to support either explicit fields
|
|
1010
1079
|
* or an arbitrary ClickHouse SQL expression.
|
|
1011
1080
|
*
|
|
1012
1081
|
* @generated from protobuf message moose.proto.OrderBy
|
|
@@ -1124,31 +1193,6 @@ interface SeedFilter {
|
|
|
1124
1193
|
* @generated MessageType for protobuf message moose.proto.SeedFilter
|
|
1125
1194
|
*/
|
|
1126
1195
|
declare const SeedFilter: SeedFilter$Type;
|
|
1127
|
-
declare class TableProjection$Type extends MessageType<TableProjection> {
|
|
1128
|
-
constructor();
|
|
1129
|
-
create(value?: PartialMessage<TableProjection>): TableProjection;
|
|
1130
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TableProjection): TableProjection;
|
|
1131
|
-
internalBinaryWrite(message: TableProjection, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1132
|
-
}
|
|
1133
|
-
/**
|
|
1134
|
-
* DB-neutral representation of a table projection
|
|
1135
|
-
*
|
|
1136
|
-
* @generated from protobuf message moose.proto.TableProjection
|
|
1137
|
-
*/
|
|
1138
|
-
interface TableProjection {
|
|
1139
|
-
/**
|
|
1140
|
-
* @generated from protobuf field: string name = 1
|
|
1141
|
-
*/
|
|
1142
|
-
name: string;
|
|
1143
|
-
/**
|
|
1144
|
-
* @generated from protobuf field: string body = 2
|
|
1145
|
-
*/
|
|
1146
|
-
body: string;
|
|
1147
|
-
}
|
|
1148
|
-
/**
|
|
1149
|
-
* @generated MessageType for protobuf message moose.proto.TableProjection
|
|
1150
|
-
*/
|
|
1151
|
-
declare const TableProjection: TableProjection$Type;
|
|
1152
1196
|
declare class Dmv1View$Type extends MessageType<Dmv1View> {
|
|
1153
1197
|
constructor();
|
|
1154
1198
|
create(value?: PartialMessage<Dmv1View>): Dmv1View;
|
|
@@ -2295,4 +2339,4 @@ interface SelectRowPolicy {
|
|
|
2295
2339
|
*/
|
|
2296
2340
|
declare const SelectRowPolicy: SelectRowPolicy$Type;
|
|
2297
2341
|
|
|
2298
|
-
export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SeedFilter, SelectQuery, SelectRowPolicy, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableIndex, TableProjection, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
|
|
2342
|
+
export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SeedFilter, SelectQuery, SelectRowPolicy, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableConstraint, TableIndex, TableProjection, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
|
|
@@ -63,6 +63,7 @@ __export(infrastructure_map_exports, {
|
|
|
63
63
|
SubjectVersion: () => SubjectVersion,
|
|
64
64
|
Table: () => Table,
|
|
65
65
|
TableAlias: () => TableAlias,
|
|
66
|
+
TableConstraint: () => TableConstraint,
|
|
66
67
|
TableIndex: () => TableIndex,
|
|
67
68
|
TableProjection: () => TableProjection,
|
|
68
69
|
TableReference: () => TableReference,
|
|
@@ -2189,7 +2190,8 @@ var Table$Type = class extends import_runtime16.MessageType {
|
|
|
2189
2190
|
/*ScalarType.STRING*/
|
|
2190
2191
|
},
|
|
2191
2192
|
{ no: 21, name: "projections", kind: "message", repeat: 2, T: () => TableProjection },
|
|
2192
|
-
{ no: 22, name: "seed_filter", kind: "message", T: () => SeedFilter }
|
|
2193
|
+
{ no: 22, name: "seed_filter", kind: "message", T: () => SeedFilter },
|
|
2194
|
+
{ no: 23, name: "constraints", kind: "message", repeat: 2, T: () => TableConstraint }
|
|
2193
2195
|
]);
|
|
2194
2196
|
}
|
|
2195
2197
|
create(value) {
|
|
@@ -2202,6 +2204,7 @@ var Table$Type = class extends import_runtime16.MessageType {
|
|
|
2202
2204
|
message.tableSettings = {};
|
|
2203
2205
|
message.indexes = [];
|
|
2204
2206
|
message.projections = [];
|
|
2207
|
+
message.constraints = [];
|
|
2205
2208
|
if (value !== void 0)
|
|
2206
2209
|
(0, import_runtime15.reflectionMergePartial)(this, message, value);
|
|
2207
2210
|
return message;
|
|
@@ -2299,6 +2302,10 @@ var Table$Type = class extends import_runtime16.MessageType {
|
|
|
2299
2302
|
22:
|
|
2300
2303
|
message.seedFilter = SeedFilter.internalBinaryRead(reader, reader.uint32(), options, message.seedFilter);
|
|
2301
2304
|
break;
|
|
2305
|
+
case /* repeated moose.proto.TableConstraint constraints */
|
|
2306
|
+
23:
|
|
2307
|
+
message.constraints.push(TableConstraint.internalBinaryRead(reader, reader.uint32(), options));
|
|
2308
|
+
break;
|
|
2302
2309
|
default:
|
|
2303
2310
|
let u = options.readUnknownField;
|
|
2304
2311
|
if (u === "throw")
|
|
@@ -2372,6 +2379,8 @@ var Table$Type = class extends import_runtime16.MessageType {
|
|
|
2372
2379
|
TableProjection.internalBinaryWrite(message.projections[i], writer.tag(21, import_runtime13.WireType.LengthDelimited).fork(), options).join();
|
|
2373
2380
|
if (message.seedFilter)
|
|
2374
2381
|
SeedFilter.internalBinaryWrite(message.seedFilter, writer.tag(22, import_runtime13.WireType.LengthDelimited).fork(), options).join();
|
|
2382
|
+
for (let i = 0; i < message.constraints.length; i++)
|
|
2383
|
+
TableConstraint.internalBinaryWrite(message.constraints[i], writer.tag(23, import_runtime13.WireType.LengthDelimited).fork(), options).join();
|
|
2375
2384
|
let u = options.writeUnknownFields;
|
|
2376
2385
|
if (u !== false)
|
|
2377
2386
|
(u == true ? import_runtime14.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2379,6 +2388,146 @@ var Table$Type = class extends import_runtime16.MessageType {
|
|
|
2379
2388
|
}
|
|
2380
2389
|
};
|
|
2381
2390
|
var Table = new Table$Type();
|
|
2391
|
+
var TableProjection$Type = class extends import_runtime16.MessageType {
|
|
2392
|
+
constructor() {
|
|
2393
|
+
super("moose.proto.TableProjection", [
|
|
2394
|
+
{
|
|
2395
|
+
no: 1,
|
|
2396
|
+
name: "name",
|
|
2397
|
+
kind: "scalar",
|
|
2398
|
+
T: 9
|
|
2399
|
+
/*ScalarType.STRING*/
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
no: 2,
|
|
2403
|
+
name: "body",
|
|
2404
|
+
kind: "scalar",
|
|
2405
|
+
T: 9
|
|
2406
|
+
/*ScalarType.STRING*/
|
|
2407
|
+
}
|
|
2408
|
+
]);
|
|
2409
|
+
}
|
|
2410
|
+
create(value) {
|
|
2411
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
2412
|
+
message.name = "";
|
|
2413
|
+
message.body = "";
|
|
2414
|
+
if (value !== void 0)
|
|
2415
|
+
(0, import_runtime15.reflectionMergePartial)(this, message, value);
|
|
2416
|
+
return message;
|
|
2417
|
+
}
|
|
2418
|
+
internalBinaryRead(reader, length, options, target) {
|
|
2419
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2420
|
+
while (reader.pos < end) {
|
|
2421
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2422
|
+
switch (fieldNo) {
|
|
2423
|
+
case /* string name */
|
|
2424
|
+
1:
|
|
2425
|
+
message.name = reader.string();
|
|
2426
|
+
break;
|
|
2427
|
+
case /* string body */
|
|
2428
|
+
2:
|
|
2429
|
+
message.body = reader.string();
|
|
2430
|
+
break;
|
|
2431
|
+
default:
|
|
2432
|
+
let u = options.readUnknownField;
|
|
2433
|
+
if (u === "throw")
|
|
2434
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2435
|
+
let d = reader.skip(wireType);
|
|
2436
|
+
if (u !== false)
|
|
2437
|
+
(u === true ? import_runtime14.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
return message;
|
|
2441
|
+
}
|
|
2442
|
+
internalBinaryWrite(message, writer, options) {
|
|
2443
|
+
if (message.name !== "")
|
|
2444
|
+
writer.tag(1, import_runtime13.WireType.LengthDelimited).string(message.name);
|
|
2445
|
+
if (message.body !== "")
|
|
2446
|
+
writer.tag(2, import_runtime13.WireType.LengthDelimited).string(message.body);
|
|
2447
|
+
let u = options.writeUnknownFields;
|
|
2448
|
+
if (u !== false)
|
|
2449
|
+
(u == true ? import_runtime14.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2450
|
+
return writer;
|
|
2451
|
+
}
|
|
2452
|
+
};
|
|
2453
|
+
var TableProjection = new TableProjection$Type();
|
|
2454
|
+
var TableConstraint$Type = class extends import_runtime16.MessageType {
|
|
2455
|
+
constructor() {
|
|
2456
|
+
super("moose.proto.TableConstraint", [
|
|
2457
|
+
{
|
|
2458
|
+
no: 1,
|
|
2459
|
+
name: "name",
|
|
2460
|
+
kind: "scalar",
|
|
2461
|
+
T: 9
|
|
2462
|
+
/*ScalarType.STRING*/
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
no: 2,
|
|
2466
|
+
name: "expression",
|
|
2467
|
+
kind: "scalar",
|
|
2468
|
+
T: 9
|
|
2469
|
+
/*ScalarType.STRING*/
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
no: 3,
|
|
2473
|
+
name: "constraint_type",
|
|
2474
|
+
kind: "scalar",
|
|
2475
|
+
T: 9
|
|
2476
|
+
/*ScalarType.STRING*/
|
|
2477
|
+
}
|
|
2478
|
+
]);
|
|
2479
|
+
}
|
|
2480
|
+
create(value) {
|
|
2481
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
2482
|
+
message.name = "";
|
|
2483
|
+
message.expression = "";
|
|
2484
|
+
message.constraintType = "";
|
|
2485
|
+
if (value !== void 0)
|
|
2486
|
+
(0, import_runtime15.reflectionMergePartial)(this, message, value);
|
|
2487
|
+
return message;
|
|
2488
|
+
}
|
|
2489
|
+
internalBinaryRead(reader, length, options, target) {
|
|
2490
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2491
|
+
while (reader.pos < end) {
|
|
2492
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2493
|
+
switch (fieldNo) {
|
|
2494
|
+
case /* string name */
|
|
2495
|
+
1:
|
|
2496
|
+
message.name = reader.string();
|
|
2497
|
+
break;
|
|
2498
|
+
case /* string expression */
|
|
2499
|
+
2:
|
|
2500
|
+
message.expression = reader.string();
|
|
2501
|
+
break;
|
|
2502
|
+
case /* string constraint_type */
|
|
2503
|
+
3:
|
|
2504
|
+
message.constraintType = reader.string();
|
|
2505
|
+
break;
|
|
2506
|
+
default:
|
|
2507
|
+
let u = options.readUnknownField;
|
|
2508
|
+
if (u === "throw")
|
|
2509
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2510
|
+
let d = reader.skip(wireType);
|
|
2511
|
+
if (u !== false)
|
|
2512
|
+
(u === true ? import_runtime14.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
return message;
|
|
2516
|
+
}
|
|
2517
|
+
internalBinaryWrite(message, writer, options) {
|
|
2518
|
+
if (message.name !== "")
|
|
2519
|
+
writer.tag(1, import_runtime13.WireType.LengthDelimited).string(message.name);
|
|
2520
|
+
if (message.expression !== "")
|
|
2521
|
+
writer.tag(2, import_runtime13.WireType.LengthDelimited).string(message.expression);
|
|
2522
|
+
if (message.constraintType !== "")
|
|
2523
|
+
writer.tag(3, import_runtime13.WireType.LengthDelimited).string(message.constraintType);
|
|
2524
|
+
let u = options.writeUnknownFields;
|
|
2525
|
+
if (u !== false)
|
|
2526
|
+
(u == true ? import_runtime14.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2527
|
+
return writer;
|
|
2528
|
+
}
|
|
2529
|
+
};
|
|
2530
|
+
var TableConstraint = new TableConstraint$Type();
|
|
2382
2531
|
var OrderBy$Type = class extends import_runtime16.MessageType {
|
|
2383
2532
|
constructor() {
|
|
2384
2533
|
super("moose.proto.OrderBy", [
|
|
@@ -2663,69 +2812,6 @@ var SeedFilter$Type = class extends import_runtime16.MessageType {
|
|
|
2663
2812
|
}
|
|
2664
2813
|
};
|
|
2665
2814
|
var SeedFilter = new SeedFilter$Type();
|
|
2666
|
-
var TableProjection$Type = class extends import_runtime16.MessageType {
|
|
2667
|
-
constructor() {
|
|
2668
|
-
super("moose.proto.TableProjection", [
|
|
2669
|
-
{
|
|
2670
|
-
no: 1,
|
|
2671
|
-
name: "name",
|
|
2672
|
-
kind: "scalar",
|
|
2673
|
-
T: 9
|
|
2674
|
-
/*ScalarType.STRING*/
|
|
2675
|
-
},
|
|
2676
|
-
{
|
|
2677
|
-
no: 2,
|
|
2678
|
-
name: "body",
|
|
2679
|
-
kind: "scalar",
|
|
2680
|
-
T: 9
|
|
2681
|
-
/*ScalarType.STRING*/
|
|
2682
|
-
}
|
|
2683
|
-
]);
|
|
2684
|
-
}
|
|
2685
|
-
create(value) {
|
|
2686
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
2687
|
-
message.name = "";
|
|
2688
|
-
message.body = "";
|
|
2689
|
-
if (value !== void 0)
|
|
2690
|
-
(0, import_runtime15.reflectionMergePartial)(this, message, value);
|
|
2691
|
-
return message;
|
|
2692
|
-
}
|
|
2693
|
-
internalBinaryRead(reader, length, options, target) {
|
|
2694
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2695
|
-
while (reader.pos < end) {
|
|
2696
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2697
|
-
switch (fieldNo) {
|
|
2698
|
-
case /* string name */
|
|
2699
|
-
1:
|
|
2700
|
-
message.name = reader.string();
|
|
2701
|
-
break;
|
|
2702
|
-
case /* string body */
|
|
2703
|
-
2:
|
|
2704
|
-
message.body = reader.string();
|
|
2705
|
-
break;
|
|
2706
|
-
default:
|
|
2707
|
-
let u = options.readUnknownField;
|
|
2708
|
-
if (u === "throw")
|
|
2709
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2710
|
-
let d = reader.skip(wireType);
|
|
2711
|
-
if (u !== false)
|
|
2712
|
-
(u === true ? import_runtime14.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
return message;
|
|
2716
|
-
}
|
|
2717
|
-
internalBinaryWrite(message, writer, options) {
|
|
2718
|
-
if (message.name !== "")
|
|
2719
|
-
writer.tag(1, import_runtime13.WireType.LengthDelimited).string(message.name);
|
|
2720
|
-
if (message.body !== "")
|
|
2721
|
-
writer.tag(2, import_runtime13.WireType.LengthDelimited).string(message.body);
|
|
2722
|
-
let u = options.writeUnknownFields;
|
|
2723
|
-
if (u !== false)
|
|
2724
|
-
(u == true ? import_runtime14.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2725
|
-
return writer;
|
|
2726
|
-
}
|
|
2727
|
-
};
|
|
2728
|
-
var TableProjection = new TableProjection$Type();
|
|
2729
2815
|
var Dmv1View$Type = class extends import_runtime16.MessageType {
|
|
2730
2816
|
constructor() {
|
|
2731
2817
|
super("moose.proto.Dmv1View", [
|
|
@@ -5401,6 +5487,7 @@ var SelectRowPolicy = new SelectRowPolicy$Type();
|
|
|
5401
5487
|
SubjectVersion,
|
|
5402
5488
|
Table,
|
|
5403
5489
|
TableAlias,
|
|
5490
|
+
TableConstraint,
|
|
5404
5491
|
TableIndex,
|
|
5405
5492
|
TableProjection,
|
|
5406
5493
|
TableReference,
|