Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JDBC Row Mapping with Map Facade to Twister #25

Open
criccomini opened this issue May 25, 2023 · 0 comments
Open

Add JDBC Row Mapping with Map Facade to Twister #25

criccomini opened this issue May 25, 2023 · 0 comments

Comments

@criccomini
Copy link
Owner

Issue Description:
The open source project Twister currently lacks a convenient way to map JDBC result sets to a key-value data structure. This issue proposes adding a Map facade to Twister, similar to AvroWrapper and ProtoWrapper, to simplify JDBC row mapping.

Proposal:
Introduce a Map facade in Twister to enable developers to easily map JDBC result sets to a Map representation. This will provide a consistent interface for handling different data formats and improve developer productivity.

Expected Behavior:
The Map facade should allow developers to map JDBC result sets to a list of Maps, where each row's columns are represented as key-value pairs.

Benefits:

  1. Simplified JDBC result set mapping.
  2. Consistency across data formats.
  3. Improved developer productivity.

Implementation Considerations:
Utilize existing JDBC APIs, such as ResultSetMetaData, to retrieve column names and values for each row. Handle various data types supported by JDBC and ensure compatibility with popular JDBC drivers.

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

No branches or pull requests

1 participant