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

Method DropDatabase

catalog/provider.go:501–512  ·  view source on GitHub ↗

DropDatabase implements sql.MutableDatabaseProvider.

(ctx *sql.Context, name string)

Source from the content-addressed store, hash-verified

499 }
500
501 switch schemaName {
502 case "information_schema", "pg_catalog", "__sys__", "mysql":
503 continue
504 }
505
506 all = append(all, NewDatabase(schemaName, catalogName))
507 }
508
509 sort.Slice(all, func(i, j int) bool {
510 return all[i].Name() < all[j].Name()
511 })
512
513 return all
514}
515

Callers

nothing calls this directly

Calls 3

ExecFunction · 0.92
GetCurrentCatalogFunction · 0.92
FullSchemaNameFunction · 0.85

Tested by

no test coverage detected