Skip to content

How to get enumerated values from a Postgres Database using python plugin #1949

Closed Answered by sualeh
josedavidricodias asked this question in Q&A
Discussion options

You must be logged in to vote

@josedavidricodias Sorry for the late response. Take a look at the Jaba unit test to get an idea of you can use it in Python: code

The idea is that column.columnDataType has .isEnumerated() and .getEnumValues() that will give you what you need. In Python, I expect that the column.columnDataType.enumValues syntax will work, but I have not tried it out.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by josedavidricodias
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants