[jOOQ/jOOQ#9410] Support CREATE OR REPLACE VIEW
This commit is contained in:
parent
eeb460f660
commit
5cc77d4609
@ -8790,7 +8790,7 @@ public interface DSLContext extends Scope , AutoCloseable {
|
||||
*
|
||||
* @see DSL#createOrReplaceView(String, String...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
CreateViewAsStep<Record> createOrReplaceView(String view, String... fields);
|
||||
|
||||
/**
|
||||
@ -8798,7 +8798,7 @@ public interface DSLContext extends Scope , AutoCloseable {
|
||||
*
|
||||
* @see DSL#createOrReplaceView(Name, Name...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
CreateViewAsStep<Record> createOrReplaceView(Name view, Name... fields);
|
||||
|
||||
/**
|
||||
@ -8806,7 +8806,7 @@ public interface DSLContext extends Scope , AutoCloseable {
|
||||
*
|
||||
* @see DSL#createOrReplaceView(Table, Field...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
CreateViewAsStep<Record> createOrReplaceView(Table<?> view, Field<?>... fields);
|
||||
|
||||
|
||||
@ -8819,7 +8819,7 @@ public interface DSLContext extends Scope , AutoCloseable {
|
||||
*
|
||||
* @see DSL#createOrReplaceView(String, String...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
CreateViewAsStep<Record> createOrReplaceView(String view, Function<? super Field<?>, ? extends String> fieldNameFunction);
|
||||
|
||||
/**
|
||||
@ -8831,7 +8831,7 @@ public interface DSLContext extends Scope , AutoCloseable {
|
||||
*
|
||||
* @see DSL#createOrReplaceView(String, String...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
CreateViewAsStep<Record> createOrReplaceView(String view, BiFunction<? super Field<?>, ? super Integer, ? extends String> fieldNameFunction);
|
||||
|
||||
/**
|
||||
@ -8843,7 +8843,7 @@ public interface DSLContext extends Scope , AutoCloseable {
|
||||
*
|
||||
* @see DSL#createOrReplaceView(String, String...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
CreateViewAsStep<Record> createOrReplaceView(Name view, Function<? super Field<?>, ? extends Name> fieldNameFunction);
|
||||
|
||||
/**
|
||||
@ -8855,7 +8855,7 @@ public interface DSLContext extends Scope , AutoCloseable {
|
||||
*
|
||||
* @see DSL#createOrReplaceView(String, String...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
CreateViewAsStep<Record> createOrReplaceView(Name view, BiFunction<? super Field<?>, ? super Integer, ? extends Name> fieldNameFunction);
|
||||
|
||||
/**
|
||||
@ -8867,7 +8867,7 @@ public interface DSLContext extends Scope , AutoCloseable {
|
||||
*
|
||||
* @see DSL#createOrReplaceView(String, String...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
CreateViewAsStep<Record> createOrReplaceView(Table<?> view, Function<? super Field<?>, ? extends Field<?>> fieldNameFunction);
|
||||
|
||||
/**
|
||||
@ -8879,7 +8879,7 @@ public interface DSLContext extends Scope , AutoCloseable {
|
||||
*
|
||||
* @see DSL#createOrReplaceView(String, String...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
CreateViewAsStep<Record> createOrReplaceView(Table<?> view, BiFunction<? super Field<?>, ? super Integer, ? extends Field<?>> fieldNameFunction);
|
||||
|
||||
|
||||
|
||||
@ -246,8 +246,9 @@ final class CreateViewImpl<R extends Record> extends AbstractRowCountQuery imple
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
case FIREBIRD:
|
||||
ctx.sql(' ').visit(K_ALTER);
|
||||
break;
|
||||
|
||||
default:
|
||||
ctx.sql(' ').visit(K_REPLACE);
|
||||
|
||||
@ -6861,7 +6861,7 @@ public class DSL {
|
||||
*
|
||||
* @see DSLContext#createOrReplaceView(String, String...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
public static CreateViewAsStep createOrReplaceView(String view, String... fields) {
|
||||
return dsl().createOrReplaceView(view, fields);
|
||||
}
|
||||
@ -6871,7 +6871,7 @@ public class DSL {
|
||||
*
|
||||
* @see DSLContext#createOrReplaceView(Name, Name...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
public static CreateViewAsStep createOrReplaceView(Name view, Name... fields) {
|
||||
return dsl().createOrReplaceView(view, fields);
|
||||
}
|
||||
@ -6881,7 +6881,7 @@ public class DSL {
|
||||
*
|
||||
* @see DSLContext#createOrReplaceView(Table, Field...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
public static CreateViewAsStep createOrReplaceView(Table<?> view, Field<?>... fields) {
|
||||
return dsl().createOrReplaceView(view, fields);
|
||||
}
|
||||
@ -6896,7 +6896,7 @@ public class DSL {
|
||||
*
|
||||
* @see DSLContext#createOrReplaceView(String, String...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
public static CreateViewAsStep createOrReplaceView(String view, Function<? super Field<?>, ? extends String> fieldNameFunction) {
|
||||
return dsl().createOrReplaceView(view, fieldNameFunction);
|
||||
}
|
||||
@ -6910,7 +6910,7 @@ public class DSL {
|
||||
*
|
||||
* @see DSLContext#createOrReplaceView(Name, Name...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
public static CreateViewAsStep createOrReplaceView(Name view, Function<? super Field<?>, ? extends Name> fieldNameFunction) {
|
||||
return dsl().createOrReplaceView(view, fieldNameFunction);
|
||||
}
|
||||
@ -6924,7 +6924,7 @@ public class DSL {
|
||||
*
|
||||
* @see DSLContext#createOrReplaceView(Table, Field...)
|
||||
*/
|
||||
@Support({ H2, MARIADB, MYSQL, POSTGRES })
|
||||
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
|
||||
public static CreateViewAsStep createOrReplaceView(Table<?> view, Function<? super Field<?>, ? extends Field<?>> fieldNameFunction) {
|
||||
return dsl().createOrReplaceView(view, fieldNameFunction);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user