MCPcopy
hub / github.com/kysely-org/kysely / dropView

Method dropView

src/schema/schema-module.ts:275–281  ·  view source on GitHub ↗

* Drop a view. * * ### Examples * * ```ts * await db.schema * .dropView('dogs') * .ifExists() * .execute() * ```

(viewName: string)

Source from the content-addressed store, hash-verified

273 * ```
274 */
275 dropView(viewName: string): DropViewBuilder {
276 return new DropViewBuilder({
277 queryId: createQueryId(),
278 executor: this.#executor,
279 node: DropViewNode.create(viewName),
280 })
281 }
282
283 /**
284 * Create a new type.

Callers 4

dropViewFunction · 0.80
cleanupFunction · 0.80
schema.test.tsFile · 0.80

Calls 2

createQueryIdFunction · 0.85
createMethod · 0.80

Tested by 2

dropViewFunction · 0.64
cleanupFunction · 0.64