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

com.jn.sqlhelper.dialect.internal.SnowflakeDialect Maven / Gradle / Ivy

package com.jn.sqlhelper.dialect.internal;

import com.jn.sqlhelper.dialect.internal.limit.OffsetFetchFirstOnlyLimitHandler;

/**
 * https://docs.snowflake.net/manuals/sql-reference/constructs/limit.html
 * 

* support two limit syntax: * SELECT ... * FROM ... * [ ORDER BY ... ] * LIMIT [ OFFSET ] * [ ... ] *

* -- ANSI syntax * SELECT ... * FROM ... * [ ORDER BY ... ] * [ OFFSET ] [ { ROW | ROWS } ] FETCH [ { FIRST | NEXT } ] [ { ROW | ROWS } ] [ ONLY ] * [ ... ] */ public class SnowflakeDialect extends AbstractDialect { public SnowflakeDialect() { super(); setLimitHandler(new OffsetFetchFirstOnlyLimitHandler()); } @Override public boolean isSupportsLimitOffset() { return true; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy