What version of SQLBoiler are you using (sqlboiler --version)?
SQLBoiler v3.4.0
Database engine: Postgres
Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)
CREATE SCHEMA IF NOT EXISTS "go-backend";
CREATE TABLE IF NOT EXISTS "go-backend"."tokens" (
id SERIAL PRIMARY KEY,
uuid uuid NOT NULL,
token text NOT NULL,
user_id integer REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
);
CREATE TABLE IF NOT EXISTS "go-backend"."users" (
id SERIAL PRIMARY KEY,
uuid uuid NOT NULL,
email text NOT NULL;
);
I think I got it. Test shows that it's working now. It's on the dev branch if you want to confirm it's working. Thanks for the kind words :) Re-open if there's any problems.
What version of SQLBoiler are you using (
sqlboiler --version
)?SQLBoiler v3.4.0
Database engine:
Postgres
Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)
Issue
Running the following code
Produces the following error and SQL logs:
Logs:
So it looks like when loading the user via the foreign key it hasn't quoted the schema name properly and tripped up.
Also, epic work on this project. A lot of effort and care has gone into it and it's been a pleasure to use.