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

Method createView

src/drivers/sqlite-base-driver.ts:294–296  ·  view source on GitHub ↗
(view: DatabaseViewSchema)

Source from the content-addressed store, hash-verified

292 }
293
294 createView(view: DatabaseViewSchema): string {
295 return `CREATE VIEW ${this.escapeId(view.schemaName)}.${this.escapeId(view.name)} AS ${view.statement}`;
296 }
297
298 dropView(schemaName: string, name: string): string {
299 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