public OpenxmlFunction(VariableName variableName, SqlScriptableToken stringValue, IntegerLiteral flags, Optional<OpenxmlSchema> schema) { Debug.Assert(variableName != null); Debug.Assert(stringValue != null); Debug.Assert(schema != null); this.variableName = variableName; this.stringValue = stringValue; this.flags = (flags == null) ? 0 : (int)flags.Value; this.schema = schema; }
public SetOptionStatement(SqlScriptableToken identifier, Sequence<SqlScriptableToken> valueList) { using (StringWriter stringWriter = new StringWriter()) { SqlWriter writer = new SqlWriter(stringWriter, DatabaseEngine.Unknown); writer.WriteScript(identifier, WhitespacePadding.None); foreach (SqlScriptableToken token in valueList) { writer.Write(' '); token.WriteTo(writer); } option = stringWriter.ToString(); } }
internal static Exception CreateException(string message, SqlScriptableToken token, DatabaseEngine targetEngine) { StringWriter writer = new StringWriter(); writer.WriteLine(message); token.WriteTo(new SqlWriter(writer, targetEngine)); return new InvalidOperationException(writer.ToString()); }
public SetOptionStatement(SqlScriptableToken identifier, SqlScriptableToken value): this(identifier, new Sequence<SqlScriptableToken>(value)) {}
public OpenxmlFunction(VariableName variableName, SqlScriptableToken stringValue, Optional<OpenxmlSchema> schema): this(variableName, stringValue, null, schema) {}
public WaitforStatement(Identifier identifier, SqlScriptableToken stringValue) { Debug.Assert(identifier != null); Debug.Assert(stringValue != null); this.identifier = identifier; this.stringValue = stringValue; }
private CountFunction(bool? restriction, SqlScriptableToken expression) { Debug.Assert(expression != null); this.restriction = restriction; this.expression = expression; }
public CountFunction(SqlScriptableToken expression): this(default(bool?), expression) {}
public CountFunction(DuplicateRestrictionToken restriction, SqlScriptableToken expression): this(restriction.Distinct, expression) {}