Skip to content

Commit eb0b860

Browse files
committed
Cleanup.
1 parent 028c1d9 commit eb0b860

File tree

3 files changed

+2
-24
lines changed

3 files changed

+2
-24
lines changed

packages/sync-rules/src/SqlParameterQuery.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,6 @@ export class SqlParameterQuery
299299
readonly queryId: string;
300300
readonly tools: SqlTools;
301301

302-
readonly type: BucketSourceType = BucketSourceType.SYNC_RULE;
303-
304-
readonly subscribedToByDefault: boolean = true;
305-
306302
readonly errors: SqlRuleError[];
307303

308304
constructor(options: SqlParameterQueryOptions) {
@@ -326,10 +322,6 @@ export class SqlParameterQuery
326322
return this.sourceTable.matches(table);
327323
}
328324

329-
get name(): string {
330-
return this.descriptorName;
331-
}
332-
333325
getSourceTables(): Set<TablePattern> {
334326
return new Set([this.sourceTable]);
335327
}

packages/sync-rules/src/StaticSqlParameterQuery.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ export class StaticSqlParameterQuery implements BucketParameterQuerierSourceDefi
161161
*/
162162
readonly filter: ParameterValueClause | undefined;
163163

164-
readonly subscribedToByDefault = true;
165-
readonly type = BucketSourceType.SYNC_RULE;
166-
167164
readonly errors: SqlRuleError[];
168165

169166
constructor(options: StaticSqlParameterQueryOptions) {
@@ -177,10 +174,6 @@ export class StaticSqlParameterQuery implements BucketParameterQuerierSourceDefi
177174
this.errors = options.errors ?? [];
178175
}
179176

180-
get name() {
181-
return this.descriptorName;
182-
}
183-
184177
getSourceTables() {
185178
return new Set<TablePattern>();
186179
}
@@ -200,7 +193,7 @@ export class StaticSqlParameterQuery implements BucketParameterQuerierSourceDefi
200193
).map((desc) => {
201194
return {
202195
...desc,
203-
definition: this.name,
196+
definition: this.descriptorName,
204197
inclusion_reasons: ['default']
205198
} satisfies ResolvedBucket;
206199
});

packages/sync-rules/src/TableValuedFunctionSqlParameterQuery.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ export class TableValuedFunctionSqlParameterQuery implements BucketParameterQuer
200200

201201
readonly errors: SqlRuleError[];
202202

203-
readonly subscribedToByDefault = true;
204-
readonly type = BucketSourceType.SYNC_RULE;
205-
206203
constructor(options: TableValuedFunctionSqlParameterQueryOptions) {
207204
this.sql = options.sql;
208205
this.parameterExtractors = options.parameterExtractors;
@@ -219,10 +216,6 @@ export class TableValuedFunctionSqlParameterQuery implements BucketParameterQuer
219216
this.errors = options.errors;
220217
}
221218

222-
get name() {
223-
return this.descriptorName;
224-
}
225-
226219
getSourceTables() {
227220
return new Set<TablePattern>();
228221
}
@@ -242,7 +235,7 @@ export class TableValuedFunctionSqlParameterQuery implements BucketParameterQuer
242235
).map((desc) => {
243236
return {
244237
...desc,
245-
definition: this.name,
238+
definition: this.descriptorName,
246239
inclusion_reasons: ['default']
247240
} satisfies ResolvedBucket;
248241
});

0 commit comments

Comments
 (0)