Class SelectSqlGenerator

java.lang.Object
org.litebridgedb.db.spi.impl.sql.AbstractSqlGenerator
org.litebridgedb.db.spi.impl.sql.SelectSqlGenerator

public class SelectSqlGenerator extends AbstractSqlGenerator
  • Constructor Details

  • Method Details

    • prepareSql

      public PreparedSql prepareSql(Select select, ConnectionProvider connectionProvider)
    • prepareSql

      public PreparedSql prepareSql(Select select, ConnectionProvider connectionProvider, @Nullable Operation parentOperation)
    • createJoin

      protected PreparedSql createJoin(Join join, Select operation, ConnectionProvider connectionProvider)
      Create a SQL JOIN clause based on the provided Join object.

      The join clause is constructed by specifying the target table, optional schema, and any associated conditions for the join operation. Conditional logic is applied to determine the join type (e.g., ON or USING) and format the resulting SQL string.

      Parameters:
      join - the Join object containing the target table information and the list of conditions defining the join relationship
      Returns:
      Prepared SQL join clause
    • appendLimitClause

      protected void appendLimitClause(Limit limit, StringBuilder sql)