mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 23:58:36 -05:00
Move app to apps/web-react in pnpm workspace layout
This commit is contained in:
10
apps/web-react/app/routines/optimizeDatabase.ts
Normal file
10
apps/web-react/app/routines/optimizeDatabase.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { CompiledQuery } from "kysely";
|
||||
import { db } from "../db/sql";
|
||||
import { Routine } from "./routine.server";
|
||||
|
||||
export const OptimizeDatabaseRoutine = new Routine({
|
||||
name: "OptimizeDatabase",
|
||||
func: async () => {
|
||||
await db.executeQuery(CompiledQuery.raw("PRAGMA optimize"));
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user