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

Method new_ident_quoted_if_needs

datafusion/sql/src/unparser/expr.rs:934–941  ·  view source on GitHub ↗

This function can create an identifier with or without quotes based on the dialect rules

(&self, ident: String)

Source from the content-addressed store, hash-verified

932
933 /// This function can create an identifier with or without quotes based on the dialect rules
934 pub(super) fn new_ident_quoted_if_needs(&self, ident: String) -> Ident {
935 let quote_style = self.dialect.identifier_quote_style(&ident);
936 Ident {
937 value: ident,
938 quote_style,
939 span: Span::empty(),
940 }
941 }
942
943 pub(super) fn new_ident_without_quote_style(&self, str: String) -> Ident {
944 Ident {

Callers 9

select_item_to_sqlMethod · 0.80
join_using_to_sqlMethod · 0.80
new_table_aliasMethod · 0.80
expr_to_sql_innerMethod · 0.80
named_struct_to_sqlMethod · 0.80
get_field_to_sqlMethod · 0.80
col_to_sqlMethod · 0.80

Calls 2

emptyFunction · 0.50

Tested by

no test coverage detected