SQLite overhaul: custom value, query db command (#5247)

Clean up query errors
This commit is contained in:
Reilly Wood
2022-04-19 21:58:21 -07:00
committed by GitHub
parent c0ce1e9057
commit b501db673a
13 changed files with 519 additions and 207 deletions

View File

@ -28,14 +28,14 @@ pub trait CustomValue: fmt::Debug + Send + Sync {
// Follow cell path functions
fn follow_path_int(&self, _count: usize, span: Span) -> Result<Value, ShellError> {
Err(ShellError::IncompatiblePathAccess(
format!("{} does't support path access", self.value_string()),
format!("{} doesn't support path access", self.value_string()),
span,
))
}
fn follow_path_string(&self, _column_name: String, span: Span) -> Result<Value, ShellError> {
Err(ShellError::IncompatiblePathAccess(
format!("{} does't support path access", self.value_string()),
format!("{} doesn't support path access", self.value_string()),
span,
))
}