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

Cannot generate models #417

Open
tina80lvl opened this issue Oct 26, 2024 · 1 comment
Open

Cannot generate models #417

tina80lvl opened this issue Oct 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tina80lvl
Copy link

I'm using psql 15.11, jet 2.11.1

I have my db generated with goose, trying to execute

jet -dsn "postgres://postgres:postgres@localhost:5432/${LOCAL_DB_NAME}?sslmode=disable" -schema=public -path=./internal/generated -ignore-tables=goose_db_version

getting error

Connecting to postgres database...
Retrieving schema information...
Error trace:
 - failed to get 'public' schema metadata:
 - failed to get public tables metadata:
 - failed to query BASE TABLE columns metadata:
 - failed to query 'goose_db_version' columns metadata:
 - jet:
 - pq:
 - column attr.attgenerated does not exist
make: *** [jet] Error 2

but table should be ignored, what can I do?
Screenshot 2024-10-26 at 03 01 36

@tina80lvl tina80lvl added the bug Something isn't working label Oct 26, 2024
@houten11
Copy link

Are you sure Postgres version is 15.11? attgenerated column should be present in PostgreSQL versions >= 12, so if it’s missing, something might be wrong with your PostgreSQL installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@tina80lvl @houten11 and others