sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/Utils/SqlQueryFormatter.cs
/// <summary>
/// Generate a string function SQL expression.
/// </summary>
/// <param name="node">The node being processed.</param>
/// <param name="fn">The string function.</param>
/// <returns>The processed node.</returns>
Generate a string function SQL expression.
Generate a string function SQL expression .
private QueryNode FormatStringFunction(FunctionCallNode node, string fn)
        {
            sql.AppendFormat("{0}(", fn);
            string separator = string.Empty;
            foreach (QueryNode arg in node.Arguments)
            {
                sql.Append(separator);
                arg.Accept(this);
                separator = ", ";
            }
            sql.Append(')');
            return node;
        }
private QueryNode FormatStringFunction ( FunctionCallNode node , string fn ) { sql . AppendFormat ( " " , fn ) ; string separator = string . Empty ; foreach ( QueryNode arg in node . Arguments ) { sql . Append ( separator ) ; arg . Accept ( this ) ; separator = " " ; } sql . Append ( ' ' ) ; return node ; }
Generate a string function SQL expression.
Generate a string function SQL expression .
The processed node.
The processed node .
node
FunctionCallNode
The node being processed.
The node being processed .
fn
string
The string function.
The string function .