db.sql.api.cmd.basic.SQL1 Maven / Gradle / Ivy
package db.sql.api.cmd.basic;
import db.sql.api.Cmd;
import db.sql.api.SqlBuilderContext;
import db.sql.api.cmd.struct.query.ISelect;
public class SQL1 implements Cmd {
public final static SQL1 INSTANCE = new SQL1();
@Override
public StringBuilder sql(Cmd module, Cmd parent, SqlBuilderContext context, StringBuilder sqlBuilder) {
sqlBuilder.append(" 1 ");
if (parent instanceof ISelect) {
sqlBuilder.append("AS X$1 ");
}
return sqlBuilder;
}
@Override
public boolean contain(Cmd cmd) {
return false;
}
}