package mdbc import "context" type dropScope struct { *scope *mdbc ctx context.Context } func (ds *dropScope) SetContext(ctx context.Context) *dropScope { ds.ctx = ctx return ds } func (ds *dropScope) mergeOptions() { if ds.ctx == nil { ds.ctx = context.Background() } } func (ds *dropScope) Do() error { ds.mergeOptions() return ds.database.Collection(ds.tableName).Drop(ds.ctx) }