[jOOQ/jOOQ#15351] Add PostgreSQL support for CREATE TRIGGER and DROP

TRIGGER - WIP
This commit is contained in:
Lukas Eder 2023-07-07 16:21:40 +02:00
parent 40e40916a3
commit 7eb6c72c32
3 changed files with 148 additions and 2 deletions

View File

@ -66,6 +66,7 @@ import static org.jooq.impl.Keywords.K_CREATE;
import static org.jooq.impl.Keywords.K_DO;
import static org.jooq.impl.Keywords.K_DROP;
import static org.jooq.impl.Keywords.K_END;
import static org.jooq.impl.Keywords.K_EXECUTE;
import static org.jooq.impl.Keywords.K_EXECUTE_BLOCK;
import static org.jooq.impl.Keywords.K_EXECUTE_IMMEDIATE;
import static org.jooq.impl.Keywords.K_EXECUTE_STATEMENT;
@ -108,6 +109,7 @@ import org.jooq.Statement;
// ...
// ...
import org.jooq.conf.ParamType;
import org.jooq.impl.QOM.CreateFunction;
import org.jooq.impl.QOM.UnmodifiableList;
import org.jooq.impl.ScopeMarker.ScopeContent;
import org.jooq.impl.Tools.ExtendedDataKey;
@ -117,8 +119,12 @@ import org.jooq.impl.Tools.ExtendedDataKey;
*/
final class BlockImpl extends AbstractRowCountQuery implements Block {
private static final Set<SQLDialect> REQUIRES_EXECUTE_IMMEDIATE_ON_DDL = SQLDialect.supportedBy(FIREBIRD);
private static final Set<SQLDialect> SUPPORTS_NULL_STATEMENT = SQLDialect.supportedBy(POSTGRES, YUGABYTEDB);
private static final Set<SQLDialect> SUPPORTS_NULL_STATEMENT = SQLDialect.supportedBy(POSTGRES, YUGABYTEDB);
@ -455,6 +461,19 @@ final class BlockImpl extends AbstractRowCountQuery implements Block {

View File

@ -718,6 +718,120 @@ package org.jooq.impl;

View File

@ -155,6 +155,19 @@ package org.jooq.impl;