func isDDL(query string) (bool, error) {
	query, err := removeCommentsAndTrim(query)
	if err != nil {
		return false, err
	}
	// We can safely check if the string starts with a specific string, as we
	// have already removed all leading spaces, and there are no keywords that
	// start with the same substring as one of the DDL keywords.
	for ddl := range ddlStatements {
		if strings.EqualFold(query[:len(ddl)], ddl) {
			return true, nil
		}
	}
	return false, nil
}
// isDDL returns true if the given sql string is a DDL statement.
isDDL returns true if the given sql string is a DDL statement.
// isDDL returns true if the given sql string is a DDL statement .
func isDDL(query string) (bool, error) {
	query, err := removeCommentsAndTrim(query)
	if err != nil {
		return false, err
	}
	for ddl := range ddlStatements {
		if strings.EqualFold(query[:len(ddl)], ddl) {
			return true, nil
		}
	}
	return false, nil
}
func isDDL ( query string ) ( bool , error ) { query , err := removeCommentsAndTrim ( query ) if err != nil { return false , err } for ddl := range ddlStatements { if strings . EqualFold ( query [ : len ( ddl ) ] , ddl ) { return true , nil } } return false , nil }
isDDL returns true if the given sql string is a DDL statement.
isDDL returns true if the given sql string is a DDL statement .
// We can safely check if the string starts with a specific string, as we // have already removed all leading spaces, and there are no keywords that // start with the same substring as one of the DDL keywords.