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

Method string_literal_to_sql

datafusion/sql/src/unparser/expr.rs:3098–3106  ·  view source on GitHub ↗
(&self, s: &str)

Source from the content-addressed store, hash-verified

3096 }
3097
3098 fn string_literal_to_sql(&self, s: &str) -> Option<ast::Expr> {
3099 if !s.is_ascii() {
3100 Some(ast::Expr::value(ast::Value::NationalStringLiteral(
3101 s.to_string(),
3102 )))
3103 } else {
3104 None
3105 }
3106 }
3107 }
3108
3109 let dialect = MsSqlDialect;

Callers 1

scalar_to_sqlMethod · 0.45

Calls 2

valueFunction · 0.85
to_stringMethod · 0.45

Tested by

no test coverage detected