refactor(connectors): keep concrete dialect classes internal

This commit is contained in:
Andrey Avtomonov 2026-05-25 00:15:25 +02:00
parent efe7e12526
commit e1598809b7
13 changed files with 7 additions and 167 deletions

View file

@ -36,14 +36,6 @@ describe('KtxSnowflakeDialect', () => {
);
});
it('passes Snowflake positional parameters as bind arrays', () => {
expect(dialect.prepareQuery('SELECT * FROM ORDERS WHERE ID = ? AND STATUS = ?', { id: 1, status: 'paid' })).toEqual({
sql: 'SELECT * FROM ORDERS WHERE ID = ? AND STATUS = ?',
params: [1, 'paid'],
});
expect(dialect.prepareQuery('SELECT * FROM ORDERS')).toEqual({ sql: 'SELECT * FROM ORDERS', params: undefined });
});
it('keeps unsupported statistics explicit', () => {
expect(dialect.generateColumnStatisticsQuery('PUBLIC', 'ORDERS')).toBeNull();
});