MCPcopy Create free account
hub / github.com/apecloud/myduckserver / DropTable

Method DropTable

catalog/database.go:297–310  ·  view source on GitHub ↗

DropTable implements sql.TableDropper.

(ctx *sql.Context, name string)

Source from the content-addressed store, hash-verified

295 }
296 return ErrDuckDB.New(err)
297 }
298
299 // TODO: support collation
300
301 return nil
302}
303
304func isIndexCreationDisabled(ctx *sql.Context) bool {
305 if !configuration.IsReplicationWithoutIndex() {
306 return false
307 }
308 if mycontext.IsReplicationQuery(ctx) {
309 return true
310 }
311 _, vv, ok := sql.SystemVariables.GetGlobal("replica_is_loading_snapshot")
312 if !ok {
313 return false

Callers

nothing calls this directly

Calls 3

ExecFunction · 0.92
FullTableNameFunction · 0.85

Tested by

no test coverage detected