perf(proxy): isolate settings database reads
This commit is contained in:
1 parent
add6ee56ba
commit
f8d8a09c56
17 files changed
+604
-18
No files matched your search
@@ -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(),
|
||||
}),
|
||||
};
|
||||
@@ -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(),
|
||||
}),
|
||||
};
|
||||
@@ -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(),
|
||||
}),
|
||||
};
|
||||
Reference in new issue
Block a user