func parseClientSideStatement(c *conn, query string) (*executableClientSideStatement, error) {
	if statements == nil {
		if err := compileStatements(); err != nil {
			return nil, err
		}
	}
	for _, stmt := range statements.Statements {
		if stmt.regexp.MatchString(query) {
			var params string
			if stmt.setStatement.Separator != "" {
				p := strings.SplitN(query, stmt.setStatement.Separator, 2)
				if len(p) == 2 {
					params = strings.TrimSpace(p[1])
				}
			}
			return &executableClientSideStatement{stmt, c, query, params}, nil
		}
	}
	return nil, nil
}
// parseClientSideStatement returns the executableClientSideStatement that
// corresponds with the given query string, or nil if it is not a valid client
// side statement.
parseClientSideStatement returns the executableClientSideStatement that
corresponds with the given query string, or nil if it is not a valid client
side statement.
// parseClientSideStatement returns the executableClientSideStatement that // corresponds with the given query string or nil if it is not a valid client // side statement .
func parseClientSideStatement(c *conn, query string) (*executableClientSideStatement, error) {
	if statements == nil {
		if err := compileStatements(); err != nil {
			return nil, err
		}
	}
	for _, stmt := range statements.Statements {
		if stmt.regexp.MatchString(query) {
			var params string
			if stmt.setStatement.Separator != "" {
				p := strings.SplitN(query, stmt.setStatement.Separator, 2)
				if len(p) == 2 {
					params = strings.TrimSpace(p[1])
				}
			}
			return &executableClientSideStatement{stmt, c, query, params}, nil
		}
	}
	return nil, nil
}
func parseClientSideStatement ( c * conn , query string ) ( * executableClientSideStatement , error ) { if statements == nil { if err := compileStatements ( ) ; err != nil { return nil , err } } for _ , stmt := range statements . Statements { if stmt . regexp . MatchString ( query ) { var params string if stmt . setStatement . Separator != " " { p := strings . SplitN ( query , stmt . setStatement . Separator , 2 ) if len ( p ) == 2 { params = strings . TrimSpace ( p [ 1 ] ) } } return & executableClientSideStatement { stmt , c , query , params } , nil } } return nil , nil }
parseClientSideStatement returns the executableClientSideStatement that
corresponds with the given query string, or nil if it is not a valid client
side statement.
parseClientSideStatement returns the executableClientSideStatement that corresponds with the given query string or nil if it is not a valid client side statement .