Open adatob opened 1 year ago
Can you share some sort of schema for the VIEW?
The view was created as follow:
CREATE OR REPLACE VIEW myschema.jets_pilots AS SELECT jets.id AS jet_id, jets.name as name, pilots.name AS pilot_name FROM myschema.jets AS jets LEFT JOIN myschema.pilots AS pilots ON pilots.id=jets.pilot_id;
Tables pilots
and jets
was created within myschema
.
Sqlboiler invoked using command:
sqlboiler psql --debug --no-tests --add-enum-types --always-wrap-errors --pkgname myschema -c sqlboiler.toml -o sql/models/mydb/myschema
Hey, I've noticed that the model generator added unused "database/sql" import for SQL VIEW models.
version of SQLBoiler: 4.14.2
database version: Postgresql 10