code: func (m *mysql) TruncateAll(tx *Connection) error {
  	var stmts []string
  	err := tx.RawQuery(mysqlTruncate, m.Details().Database).All(&stmts)
  	if err != nil {
  		return err
  	}
  	if len(stmts) == 0 {
  		return nil
  	}
  
  	var qb bytes.Buffer
  	// #49: Disable foreign keys before truncation
  	qb.WriteString("SET SESSION FOREIGN_KEY_CHECKS = 0; ")
  	qb.WriteString(strings.Join(stmts, " "))
  	// #49: Re-enable foreign keys after truncation
  	qb.WriteString(" SET SESSION FOREIGN_KEY_CHECKS = 1;")
  
  	return tx.RawQuery(qb.String()).Exec()
  }
docs: // TruncateAll truncates all tables for the given connection.