* Drop a view. * * ### Examples * * ```ts * await db.schema * .dropView('dogs') * .ifExists() * .execute() * ```
(viewName: string)
| 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. |