refactor: use cursors instead of pages

This commit is contained in:
izzy
2026-01-06 15:49:36 +00:00
parent 06ee275202
commit d189722bbf
12 changed files with 100 additions and 115 deletions
+8
View File
@@ -130,6 +130,14 @@ const create = (path: string, up: string[], down: string[]) => {
const compare = async () => {
const configRepository = new ConfigRepository();
const { database } = configRepository.getEnv();
database.config = {
connectionType: 'parts',
database: 'immich',
host: 'database',
password: 'postgres',
username: 'postgres',
port: 5432,
};
const db = postgres(asPostgresConnectionConfig(database.config));
const source = schemaFromCode({ overrides: true, namingStrategy: 'default' });