fixed questdb files

This commit is contained in:
Boki 2025-06-19 21:14:44 -04:00
parent 4aa8b7a42d
commit 691d259a67
3 changed files with 6 additions and 18 deletions

View file

@ -1,5 +1,5 @@
import { getLogger } from '@stock-bot/logger';
import type { IndexDefinition, QueryResult, TableNames, TableSchema } from './types';
import type { QueryResult, TableSchema } from './types';
// Interface to avoid circular dependency
interface QuestDBClientInterface {
@ -299,7 +299,7 @@ export class QuestDBSchemaManager {
/**
* Create table partitions for future dates
*/
public async createPartitions(tableName: string, days: number = 30): Promise<void> {
public async createPartitions(tableName: string, _days: number = 30): Promise<void> {
// QuestDB handles partitioning automatically based on the PARTITION BY clause
// This method is for future extensibility
this.logger.info(`Partitioning is automatic for table ${tableName}`);
@ -337,16 +337,6 @@ export class QuestDBSchemaManager {
return sql;
}
/**
* Build index creation SQL (for future use)
*/
private buildCreateIndexSQL(tableName: string, index: IndexDefinition): string {
const indexName = `idx_${tableName}_${index.columns.join('_')}`;
const columns = index.columns.join(', ');
// QuestDB uses different index syntax, this is for future compatibility
return `CREATE INDEX ${indexName} ON ${tableName} (${columns})`;
}
/**
* Validate schema definition