MCPcopy Create free account
hub / github.com/Dokploy/dokploy / updatePostgresById

Function updatePostgresById

packages/server/src/services/postgres.ts:118–132  ·  view source on GitHub ↗
(
	postgresId: string,
	postgresData: Partial<Postgres>,
)

Source from the content-addressed store, hash-verified

116};
117
118export const updatePostgresById = async (
119 postgresId: string,
120 postgresData: Partial<Postgres>,
121) => {
122 const { appName, ...rest } = postgresData;
123 const result = await db
124 .update(postgres)
125 .set({
126 ...rest,
127 })
128 .where(eq(postgres.postgresId, postgresId))
129 .returning();
130
131 return result[0];
132};
133
134export const removePostgresById = async (postgresId: string) => {
135 const result = await db

Callers 2

postgres.tsFile · 0.90
deployPostgresFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected