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

Method dropTable

src/schema/schema-module.ts:116–122  ·  view source on GitHub ↗

* Drop a table. * * ### Examples * * ```ts * await db.schema * .dropTable('person') * .execute() * ```

(table: string)

Source from the content-addressed store, hash-verified

114 * ```
115 */
116 dropTable(table: string): DropTableBuilder {
117 return new DropTableBuilder({
118 queryId: createQueryId(),
119 executor: this.#executor,
120 node: DropTableNode.create(parseTable(table)),
121 })
122 }
123
124 /**
125 * Create a new index.

Callers 15

downFunction · 0.80
downFunction · 0.80
downFunction · 0.80
dropTestMigrationTablesFunction · 0.80
deleteMigrationTablesFunction · 0.80
stream.test.tsFile · 0.80
dropTablesFunction · 0.80
camel-case.test.tsFile · 0.80
dropDatabaseFunction · 0.80
destroyJSONTestFunction · 0.80
introspect.test.tsFile · 0.80

Calls 3

createQueryIdFunction · 0.85
parseTableFunction · 0.85
createMethod · 0.80

Tested by 6

dropTestMigrationTablesFunction · 0.64
deleteMigrationTablesFunction · 0.64
dropTablesFunction · 0.64
dropSchemaFunction · 0.64
cleanupFunction · 0.64
dropTestTablesFunction · 0.64