MCPcopy Create free account
hub / github.com/go-pg/pg / DropTable

Method DropTable

orm/query.go:1254–1257  ·  view source on GitHub ↗
(opt *DropTableOptions)

Source from the content-addressed store, hash-verified

1252}
1253
1254func (q *Query) DropTable(opt *DropTableOptions) error {
1255 _, err := q.db.ExecContext(q.ctx, NewDropTableQuery(q, opt))
1256 return err
1257}
1258
1259func (q *Query) CreateComposite(opt *CreateCompositeOptions) error {
1260 _, err := q.db.ExecContext(q.ctx, NewCreateCompositeQuery(q, opt))

Callers 5

createTestSchemaFunction · 0.80
db_test.goFile · 0.80
initFunction · 0.80

Calls 2

NewDropTableQueryFunction · 0.85
ExecContextMethod · 0.65

Tested by 4

createTestSchemaFunction · 0.64
initFunction · 0.64