#!/bin/bash # File to process FILE="services/trading_service/src/repository_impls.rs" # Simple pattern 1: sqlx::query!("SELECT ... FROM ... WHERE ... = $1", var) sed -i 's/sqlx::query!(/sqlx::query(/g' "$FILE" # Remove trailing commas before closing parentheses in bind calls # This is a conservative approach - we'll need to manually fix bind() calls echo "Basic patterns replaced. Manual fixes for bind() calls needed."