MCPcopy Index your code
hub / github.com/jOOQ/jOOQ / toSQLDDLTypeDeclaration0

Method toSQLDDLTypeDeclaration0

jOOQ/src/main/java/org/jooq/impl/Tools.java:6241–6456  ·  view source on GitHub ↗
(Context<?> ctx, DataType<?> type)

Source from the content-addressed store, hash-verified

6239
6240
6241 static final void toSQLDDLTypeDeclaration0(Context<?> ctx, DataType<?> type) {
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284 // [#5299] MySQL enum types
6285 if (EnumType.class.isAssignableFrom(type.getType())) {
6286
6287 @SuppressWarnings("unchecked")
6288 DataType<EnumType> enumType = (DataType<EnumType>) type;
6289
6290 switch (ctx.family()) {
6291
6292
6293 case H2:
6294 case MARIADB:
6295 case MYSQL: {
6296 ctx.visit(K_ENUM).sql('(');
6297
6298 String separator = "";

Callers 1

Calls 15

enumsMethod · 0.95
inlineMethod · 0.95
storedEnumTypeMethod · 0.95
emulateEnumTypeMethod · 0.95
mysqlLobTypeNameMethod · 0.95
VARCHARMethod · 0.80
isAssignableFromMethod · 0.65
getTypeMethod · 0.65
familyMethod · 0.65
sqlMethod · 0.65

Tested by

no test coverage detected