Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented custom SQL DB registration (#917)
* Add optional dbType parameter to JDBC read functions This commit introduces an optional `dbType` parameter to various JDBC read functions. It allows for specifying the database type directly, enhancing flexibility and control over query execution. This change ensures backward compatibility by defaulting to type inference when `dbType` is not provided. * Add support for custom DB types in schema generation This update introduces the ability to specify custom database types in the data schema generation process. The changes include the addition of a `dbTypeClassName` field and modifications to pass `DbType` to relevant functions. This enhances flexibility in handling various database types beyond the default configurations. * Refactor database type handling with ServiceLoader This update refactors the DataSchemaGenerator to use ServiceLoader for loading DbTypeProvider and removes hard-coded class loading. It also changes the annotation parameter from dbTypeClassName to dbTypeKClass for better type safety. * Reverted support custom DB for plugins * Added tests for customDB for limited number of cases and API testing * Add dbType parameter to readSqlTable function * Update Javadoc to clarify automatic database type recognition
- Loading branch information