コード例 #1
0
		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;
		}
コード例 #2
0
		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();
			}
		}
コード例 #3
0
 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());
 }
コード例 #4
0
		public SetOptionStatement(SqlScriptableToken identifier, SqlScriptableToken value): this(identifier, new Sequence<SqlScriptableToken>(value)) {}
コード例 #5
0
		public OpenxmlFunction(VariableName variableName, SqlScriptableToken stringValue, Optional<OpenxmlSchema> schema): this(variableName, stringValue, null, schema) {}
コード例 #6
0
		public WaitforStatement(Identifier identifier, SqlScriptableToken stringValue) {
			Debug.Assert(identifier != null);
			Debug.Assert(stringValue != null);
			this.identifier = identifier;
			this.stringValue = stringValue;
		}
コード例 #7
0
		private CountFunction(bool? restriction, SqlScriptableToken expression) {
			Debug.Assert(expression != null);
			this.restriction = restriction;
			this.expression = expression;
		}
コード例 #8
0
		public CountFunction(SqlScriptableToken expression): this(default(bool?), expression) {}
コード例 #9
0
		public CountFunction(DuplicateRestrictionToken restriction, SqlScriptableToken expression): this(restriction.Distinct, expression) {}