INNER CODE UNIT · Go

func

rwynn/gtm · gtm.go:685

func (op *Op) IsDrop() bool {
	if _, drop := op.IsDropDatabase(); drop {
		return true
	}
	if _, drop := op.IsDropCollection(); drop {
		return true
	}
	return false
}

func (op *Op) IsDropCollection() (string, bool) {
	if op.IsCommand() {
		if op.Data != nil {
			if val, ok := op.Data["drop"]; ok {
				return val.(string), true
			}
		}
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…