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

top.lingkang.finalsql.dialect.PostgreSqlDialect Maven / Gradle / Ivy

The newest version!
package top.lingkang.finalsql.dialect;

import top.lingkang.finalsql.sql.ExSqlEntity;

import java.util.ArrayList;

/**
 * @author lingkang
 * Created by 2022/4/18
 */
public class PostgreSqlDialect implements SqlDialect {
    @Override
    public String one(String sql) {
        return "select " + sql + " limit 1 offset 0";
    }

    @Override
    public String getTableName(String name) {
        return "\"" + name + "\"";
    }

    @Override
    public String nextval(String column) {
        return "nextval('" + column + "')";
    }

    @Override
    public String rowSql(String sql, int start, int row) {
        return sql + " limit " + row + " offset " + start;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy