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:
@@ -73,7 +73,13 @@ pub enum ColumnType {
|
|||||||
impl ColumnType {
|
impl ColumnType {
|
||||||
/// Returns a Result with error message if the string is not a valid ColumnType
|
/// Returns a Result with error message if the string is not a valid ColumnType
|
||||||
pub fn from_str(s: &str) -> anyhow::Result<Self> {
|
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)?)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user