We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.26.0
I encountered this error when I ran the command “sqlc generate”, this is the structure of the sql and yaml files.
PS C:\Users\%USERNAME%\Documents\project_1> sqlc generate # package sql\queries\users.sql:1:1: relation "users" does not exist
-- +goose up CREATE TABLE users ( id UUID PRIMARY KEY, created_at TIMESTAMP NOT NULL, updated_at TIMESTAMP NOT NULL, name TEXT NOT NULL ); -- +goose down DROP TABLE USERS;
-- name: CreateUser :one INSERT INTO users (id, created_at, updated_at, name) VALUES ($1, $2, $3, $4) RETURNING *;
version: "2" sql: - schema: "sql/schema" queries: "sql/queries" engine: "postgresql" gen: go: out: "internal/database"
No response
Windows
PostgreSQL
Go
The text was updated successfully, but these errors were encountered:
Did you try replacing -- +goose up with -- +goose Up (and the same for Down).
-- +goose up
-- +goose Up
That's what the official DDL examples show.
Sorry, something went wrong.
the only thing, I didn't tried, it works, thank you.
No branches or pull requests
Version
1.26.0
What happened?
I encountered this error when I ran the command “sqlc generate”, this is the structure of the sql and yaml files.
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
Windows
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: