Relative Content

Tag Archive for postgresqlgosqlc

SQLC generate: ‘relation “users” does not exist’

I have a directory of migrations.
One of those migration files has the name of 20240718160024_initial_tables.sql
This migration file contains the sql to create the users table.
When I run sqlc generate i get the following error.

Getting Empty Records Back Using Golang, SQLC and PostgreSQL

I am trying to implement pagination in my GO backend API. The API uses SQLC
for the abstraction through to my PostgreSQL database. The issue is, It returns blank records and i cannot figure out what am doing wrong. The following are relevant codes pertaining to my current work: