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

Create a public wrapper around the TableImpl and related meta data API #7444

Open
lukaseder opened this issue Apr 27, 2018 · 2 comments
Open

Comments

@lukaseder
Copy link
Member

lukaseder commented Apr 27, 2018

When not using the code generator but only plain SQL API, there are a number of caveats including:

  • Tables don't know their columns
  • Columns don't know their tables
  • Tables don't know their constraints (primary, unique, foreign keys)
  • Tables don't know their identities

Users might be able to provide this information, but the only way to currently do it is to subtype the internal TableImpl API and do exactly what the code generator does.

We should have a public API in DSL that allows for creating such "complete", yet still "plain SQL" tables much more easily.


See also:

@raderio
Copy link

raderio commented Apr 9, 2019

Really need this feature.
I use Kotlin and Record information can be generated from class definition using https://stackoverflow.com/questions/28391889/kotlin-reflection-get-list-of-fields
will be great if this information can be provided in another way then creating a class for Record

@lukaseder
Copy link
Member Author

@raderio Thank you for your feedback. For the time being, you can write your own private API that maps to TableImpl. Or use it directly.

@lukaseder lukaseder changed the title Create a public wrapper around the TableImpl API Create a public wrapper around the TableImpl and related meta data API Jul 26, 2021
@lukaseder lukaseder removed this from the Version 3.17.0 milestone May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants