(Configuration configuration)
| 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); |
no test coverage detected