MCPcopy Create free account
hub / github.com/outerbase/studio / createView

Method createView

src/drivers/postgres/postgres-driver.ts:427–429  ·  view source on GitHub ↗
(view: DatabaseViewSchema)

Source from the content-addressed store, hash-verified

425 }
426
427 createView(view: DatabaseViewSchema): string {
428 return `CREATE VIEW ${this.escapeId(view.schemaName)}.${this.escapeId(view.name)} AS ${view.statement}`;
429 }
430
431 dropView(schemaName: string, name: string): string {
432 return `DROP VIEW IF EXISTS ${this.escapeId(schemaName)}.${this.escapeId(name)}`;

Callers

nothing calls this directly

Calls 1

escapeIdMethod · 0.95

Tested by

no test coverage detected