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 support on ColumnInformation for extracting additional information #769

Closed
ivanceras opened this Issue Feb 28, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@ivanceras
Contributor

ivanceras commented Feb 28, 2017

Add support on ColumnInformation for extracting additional information

  • default_value
  • is_unique
  • limit if any (ie: varchar(36) in mysql)
  • comment
  • referred column(if foreign key) of the foreign table ie: product.owner references users(user_id)

Use case:

The database admin ui - curtain I've been working on uses these additional information to create a generic UI for the generated fields based on the table schema.

@sgrif

This comment has been minimized.

Member

sgrif commented Mar 1, 2017

With the possible exception of limit, none of those fields are relevant to Diesel. You're certainly able to use Diesel to query information_schema in a similar fashion that we do internally, but the internals of diesel_codegen and diesel_infer_schema are not part of our public API and shouldn't be used directly.

@sgrif sgrif closed this Mar 1, 2017

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