fn parse_mod_statements(
fs: &FileSystem,
path: &Path,
original_db_name: &str,
profile_suffix: Option<&str>,
variables: &BTreeMap<String, String>,
profile_set: bool,
db: &mut BuildArtifact,
) -> Result<Option<Vec<Statement<Raw>>>, ProjectError>Expand description
Parse mod statements from a SQL file, optionally rewriting database names.
If profile_suffix is Some, all UnresolvedDatabaseName nodes matching
original_db_name are rewritten at the AST level by appending the suffix.
This is safer than raw text substitution because it only touches identifier
nodes, not string literals or comments.