Skip to content

dbeaver/pro#9617 api for data-import settings#4423

Open
HocKu7 wants to merge 3 commits into
develfrom
dbeaver/pro#9617-api-for-data-import-settings
Open

dbeaver/pro#9617 api for data-import settings#4423
HocKu7 wants to merge 3 commits into
develfrom
dbeaver/pro#9617-api-for-data-import-settings

Conversation

@HocKu7

@HocKu7 HocKu7 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@codacy-production

codacy-production Bot commented Jun 24, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 11 complexity · 0 duplication

Metric Results
Complexity 11
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@HocKu7 HocKu7 force-pushed the dbeaver/pro#9617-api-for-data-import-settings branch from 4d42e29 to edee7d9 Compare June 24, 2026 11:51
import java.util.List;
import java.util.stream.Collectors;

public class WebDataImportSettings {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed and stated that we don't want to have data import settings.
It is datasource settings, similar to dialect.
Name it WebDriverConfiguration, put all settings there: replace methods, bulk load support, transaction support. We'll add many more in future

"Supported 'on duplicate key' replace methods for this connection's SQL dialect"
onDuplicateKeyMethod: [DriverConfigurationValueInfo!]!
"Whether the connection's database supports bulk load during data import"
useBulkLoad: Boolean!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> supportsBulkLoad

"Whether the connection's database supports bulk load during data import"
useBulkLoad: Boolean!
"Whether the connection's database supports transactions"
useTransactions: Boolean!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> supportsTransactions

"Database-dependent metadata describing the driver configuration"
type DriverConfiguration {
"Supported 'on duplicate key' replace methods for this connection's SQL dialect"
onDuplicateKeyMethod: [DriverConfigurationValueInfo!]!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> supportedInsertReplaceMethods

driverConfiguration: DriverConfiguration! @since(version: "26.1.2")
}

"Database-dependent metadata describing the driver configuration"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describing features supported by the driver

}

"Generic metadata of a single allowed value (option) of a driver configuration setting"
type DriverConfigurationValueInfo {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> DictionaryValueInfo (it is a generic type which can be used in different places))

@NotNull DBSDataManipulator dataContainer,
@NotNull Path path
@NotNull Path path,
@Nullable Map<String, Object> settings

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of map (how front-end will name names of properties?) you can use GQL input type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants