MCPcopy Create free account
hub / github.com/apache/datafusion / readline_direct

Function readline_direct

datafusion-cli/src/helper.rs:220–231  ·  view source on GitHub ↗
(
        mut reader: impl BufRead,
        validator: &CliHelper,
    )

Source from the content-addressed store, hash-verified

218 use super::*;
219
220 fn readline_direct(
221 mut reader: impl BufRead,
222 validator: &CliHelper,
223 ) -> Result<ValidationResult> {
224 let mut input = String::new();
225
226 if reader.read_line(&mut input)? == 0 {
227 return Err(ReadlineError::Eof);
228 }
229
230 validator.validate_input(&input)
231 }
232
233 #[test]
234 fn unescape_readline_input() -> Result<()> {

Callers 2

unescape_readline_inputFunction · 0.85
sql_dialectFunction · 0.85

Calls 3

newFunction · 0.85
read_lineMethod · 0.80
validate_inputMethod · 0.80

Tested by 2

unescape_readline_inputFunction · 0.68
sql_dialectFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…