/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/effect-drizzle-sqlite/src/up-migrations/utils.ts
45 строк
996 B
Kit Langton
feat(effect-drizzle-sqlite): add vendored sqlite adapter (#28547)
21 май 2026, 03:09
Не верифицирован
21 май 2026, 03:09
5381795
Код
Авторство
О чём код?
/* oxlint-disable */ export interface UpgradeResult { newDb: boolean } export const MIGRATIONS_TABLE_VERSIONS = { sqlite: 1, pg: 1, effect: 1, mysql: 1, mssql: 1, cockroach: 1, singlestore: 1, } as const export const GET_VERSION_FOR = { mysql: (columns: string[]): number => { if (columns.includes("name")) return 1 return 0 }, pg: (columns: string[]): number => { if (columns.includes("name")) return 1 return 0 }, effect: (columns: string[]): number => { if (columns.includes("name")) return 1 return 0 }, mssql: (columns: string[]): number => { if (columns.includes("name")) return 1 return 0 }, cockroach: (columns: string[]): number => { if (columns.includes("name")) return 1 return 0 }, singlestore: (columns: string[]): number => { if (columns.includes("name")) return 1 return 0 }, sqlite: (columns: string[]): number => { if (columns.includes("name")) return 1 return 0 }, } as const