perf(proxy): isolate settings database reads

This commit is contained in:
ajnart committed 2026-07-29 06:47:07 +02:00
1 parent add6ee56ba
commit f8d8a09c56
17 files changed
+604 -18

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { mysqlTable, text, varchar } from "drizzle-orm/mysql-core";
export const proxySchema = {
onboarding: mysqlTable("onboarding", {
step: varchar("step", { length: 32 }).notNull(),
}),
serverSettings: mysqlTable("serverSetting", {
settingKey: varchar("setting_key", { length: 64 }).notNull(),
value: text("value").notNull(),
}),
};
+11
View File
@@ -0,0 +1,11 @@
import { pgTable, text } from "drizzle-orm/pg-core";
export const proxySchema = {
onboarding: pgTable("onboarding", {
step: text("step").notNull(),
}),
serverSettings: pgTable("serverSetting", {
settingKey: text("setting_key").notNull(),
value: text("value").notNull(),
}),
};
+11
View File
@@ -0,0 +1,11 @@
import { sqliteTable, text } from "drizzle-orm/sqlite-core";
export const proxySchema = {
onboarding: sqliteTable("onboarding", {
step: text("step").notNull(),
}),
serverSettings: sqliteTable("serverSetting", {
settingKey: text("setting_key").notNull(),
value: text("value").notNull(),
}),
};