Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 21x 18x | /**
* SingleStore database executor
* Works with mysql2 driver and drizzle-orm/singlestore
* Extends MySQL executor since SingleStore is MySQL-compatible
*/
import type { DrizzleDatabase } from '../types'
import { MySQLExecutor } from './mysql-executor'
export class SingleStoreExecutor extends MySQLExecutor {
getEngineType(): 'singlestore' {
return 'singlestore'
}
// SingleStore-specific optimizations can be added here if needed
// For now, we inherit all behavior from MySQLExecutor since
// SingleStore is largely MySQL-compatible
}
/**
* Factory function for creating SingleStore executors
*/
export function createSingleStoreExecutor(
db: DrizzleDatabase,
schema?: any
): SingleStoreExecutor {
return new SingleStoreExecutor(db, schema)
} |