All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sqlancer.cockroachdb.ast.CockroachDBBinaryLogicalOperation Maven / Gradle / Ivy

Go to download

SQLancer finds logic bugs in Database Management Systems through automatic testing

There is a newer version: 2.0.0
Show newest version
package sqlancer.cockroachdb.ast;

import sqlancer.Randomly;
import sqlancer.cockroachdb.ast.CockroachDBBinaryLogicalOperation.CockroachDBBinaryLogicalOperator;
import sqlancer.common.ast.BinaryOperatorNode;
import sqlancer.common.ast.BinaryOperatorNode.Operator;

public class CockroachDBBinaryLogicalOperation extends
        BinaryOperatorNode implements CockroachDBExpression {

    public enum CockroachDBBinaryLogicalOperator implements Operator {
        AND("AND"), OR("OR");

        private String textRepr;

        CockroachDBBinaryLogicalOperator(String textRepr) {
            this.textRepr = textRepr;
        }

        public static CockroachDBBinaryLogicalOperator getRandom() {
            return Randomly.fromOptions(CockroachDBBinaryLogicalOperator.values());
        }

        @Override
        public String getTextRepresentation() {
            return textRepr;
        }

    }

    public CockroachDBBinaryLogicalOperation(CockroachDBExpression left, CockroachDBExpression right,
            CockroachDBBinaryLogicalOperator op) {
        super(left, right, op);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy