[jOOQ/jOOQ#11082] DSL.currentTimestamp(int) is missing

This commit is contained in:
Lukas Eder 2020-12-15 14:43:05 +01:00
parent 1428a0ba54
commit 6c22cc0ea2

View File

@ -17367,6 +17367,17 @@ public class DSL {
return new CurrentTimestamp<>(TIMESTAMP.notNull());
}
/**
* Get the current_timestamp() function returning a SQL standard
* {@link SQLDataType#TIMESTAMP} type with the specified fractional
* seconds precision.
*/
@NotNull
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES })
public static Field<Timestamp> currentTimestamp(int precision) {
return currentTimestamp(Tools.field(precision));
}
/**
* Get the current_timestamp() function returning a SQL standard
* {@link SQLDataType#TIMESTAMP} type with the specified fractional
@ -17439,6 +17450,28 @@ public class DSL {
return new CurrentTimestamp<>(SQLDataType.LOCALDATETIME.notNull());
}
/**
* Get the current_timestamp() function returning a SQL standard
* {@link SQLDataType#TIMESTAMP} type with the specified fractional
* seconds precision.
*/
@NotNull
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES })
public static Field<LocalDateTime> currentLocalDateTime(int precision) {
return currentLocalDateTime(Tools.field(precision));
}
/**
* Get the current_timestamp() function returning a SQL standard
* {@link SQLDataType#TIMESTAMP} type with the specified fractional
* seconds precision.
*/
@NotNull
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES })
public static Field<LocalDateTime> currentLocalDateTime(Field<Integer> precision) {
return new CurrentTimestamp<>(SQLDataType.LOCALDATETIME.notNull(), precision);
}
/**
* Get the current_time() function.
* <p>