MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / emulateMultiset

Method emulateMultiset

jOOQ/src/main/java/org/jooq/impl/Tools.java:7461–7509  ·  view source on GitHub ↗
(Configuration configuration)

Source from the content-addressed store, hash-verified

7459 }
7460
7461 static final NestedCollectionEmulation emulateMultiset(Configuration configuration) {
7462 NestedCollectionEmulation result = defaultIfNull(configuration.settings().getEmulateMultiset(), NestedCollectionEmulation.DEFAULT);
7463
7464 if (result == NestedCollectionEmulation.DEFAULT) {
7465 switch (configuration.family()) {
7466
7467
7468
7469 case POSTGRES:
7470 case YUGABYTEDB:
7471 return NestedCollectionEmulation.JSONB;
7472
7473
7474
7475
7476 case H2:
7477 case MARIADB:
7478 case MYSQL:
7479 case SQLITE:
7480 case TRINO:
7481 return NestedCollectionEmulation.JSON;
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502 case DUCKDB:
7503 default:
7504 return NestedCollectionEmulation.NATIVE;
7505 }
7506 }
7507
7508 return result;
7509 }
7510
7511 static final DataType<?> dataType(Field<?> field) {
7512 return dataType(OTHER, field, false);

Callers 15

getCastTypeName1Method · 0.95
getDDLTypeName1Method · 0.95
acceptMultisetContentMethod · 0.80
readMultisetMethod · 0.80
sqlInline0Method · 0.80
sqlBind0Method · 0.80
set0Method · 0.80
readMultisetMethod · 0.80
accept0Method · 0.80
castForJSONMethod · 0.80
jsonxArrayAggMethod · 0.80

Calls 4

defaultIfNullMethod · 0.80
getEmulateMultisetMethod · 0.80
settingsMethod · 0.65
familyMethod · 0.65

Tested by

no test coverage detected