[jOOQ/jOOQ#7242] Add support for MySQL
This commit is contained in:
parent
3560efe0d4
commit
c37d555233
@ -46,6 +46,8 @@ import java.sql.Timestamp;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.jooq.DataType;
|
||||
import org.jooq.JSON;
|
||||
import org.jooq.JSONB;
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.impl.DefaultDataType;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
@ -125,6 +127,7 @@ public class MySQLDataType {
|
||||
|
||||
protected static final DataType<BigInteger> __BIGINTEGER = new DefaultDataType<>(SQLDialect.MYSQL, SQLDataType.DECIMAL_INTEGER, "decimal", "decimal");
|
||||
protected static final DataType<UUID> __UUID = new DefaultDataType<>(SQLDialect.MYSQL, SQLDataType.UUID, "varchar", "char");
|
||||
protected static final DataType<JSONB> __JSONB = new DefaultDataType<>(SQLDialect.MYSQL, SQLDataType.JSONB, "json");
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Dialect-specific data types and synonyms thereof
|
||||
@ -139,4 +142,5 @@ public class MySQLDataType {
|
||||
public static final DataType<byte[]> MEDIUMBLOB = new DefaultDataType<>(SQLDialect.MYSQL, SQLDataType.BLOB, "mediumblob", "binary");
|
||||
public static final DataType<byte[]> LONGBLOB = new DefaultDataType<>(SQLDialect.MYSQL, SQLDataType.BLOB, "longblob", "binary");
|
||||
public static final DataType<Date> YEAR = new DefaultDataType<>(SQLDialect.MYSQL, SQLDataType.DATE, "year", "date");
|
||||
public static final DataType<JSON> JSON = new DefaultDataType<>(SQLDialect.MYSQL, SQLDataType.JSON, "json");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user