style: fix lint errors in dialect files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka
2026-04-05 10:37:32 +08:00
parent 0ca17a1807
commit 13fb7bcf46
3 changed files with 5 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ export class MySqlDialect implements SqlDialect {
return `${schema}_${table}` return `${schema}_${table}`
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars
param(_index: number): string { param(_index: number): string {
return '?' return '?'
} }
@@ -63,6 +64,7 @@ export class MySqlDialect implements SqlDialect {
} }
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars
maxBatchRows(_columnsPerRow: number): number { maxBatchRows(_columnsPerRow: number): number {
return 1000 return 1000
} }

View File

@@ -69,6 +69,7 @@ export class PostgreSqlDialect implements SqlDialect {
} }
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars
maxBatchRows(_columnsPerRow: number): number { maxBatchRows(_columnsPerRow: number): number {
return 1000 return 1000
} }

View File

@@ -66,7 +66,8 @@ export class SqlServerDialect implements SqlDialect {
sql: string sql: string
nextParamIndex: number nextParamIndex: number
} { } {
const { sql, limit, offset, paramIndex } = params const { sql, offset, paramIndex } = params
void params.limit // used by caller to push param values
if (offset !== undefined) { if (offset !== undefined) {
return { return {