feat: handle meta:<name> column type pattern

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-16 12:55:38 -03:00
parent 6cb050188e
commit 15e2103f66

View File

@@ -73,7 +73,13 @@ pub enum ColumnType {
impl ColumnType {
/// Returns a Result with error message if the string is not a valid ColumnType
pub fn from_str(s: &str) -> anyhow::Result<Self> {
Ok(Self::try_from(s)?)
if s.starts_with("meta:") {
// Handle meta:<name> pattern - this is still a Meta column type
Ok(ColumnType::Meta)
} else {
// Handle regular column types
Ok(Self::try_from(s)?)
}
}
}