Module bus.pager

Class PostgreSqlRowBounds

All Implemented Interfaces:
Dialect

public class PostgreSqlRowBounds extends AbstractRowBounds
PostgreSQL dialect for pagination based on RowBounds. This class provides PostgreSQL-specific SQL generation for pagination using offset and limit.
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • PostgreSqlRowBounds

      public PostgreSqlRowBounds()
  • Method Details

    • getPageSql

      public String getPageSql(String sql, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.cache.CacheKey pageKey)
      Generates the PostgreSQL-specific pagination SQL using RowBounds. It appends LIMIT ? and optionally OFFSET ? to the original SQL.
      Specified by:
      getPageSql in class AbstractRowBounds
      Parameters:
      sql - the original SQL string
      rowBounds - the RowBounds object containing offset and limit
      pageKey - the CacheKey for the paginated query
      Returns:
      the PostgreSQL-specific paginated SQL string
      See Also: