You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to use the generate executable on a simple postgres database. sqlingo-gen-postgres postgresql://postgres:password@localhost:5432/dbname?sslmode=disable > ./internal/gen_models.go
gives:
Generating code for tables...
panic: unknown field type USER-DEFINED
goroutine 1 [running]:
main.main()
/Users/person/go/pkg/mod/github.com/lqs/sqlingo@v0.13.1/sqlingo-gen-postgres/main.go:12 +0x90
The database schema:
CREATETYPECOLORSAS ENUM('red', 'green', 'blue');
CREATETABLEaccounts (
id BIGSERIALPRIMARY KEY,
name VARCHAR(50) NOT NULL,
email VARCHAR(50) UNIQUE NOT NULL,
active BOOLEANNOT NULL,
fav_color COLORS,
fav_numbers INTEGER[],
properties JSONB,
created_at TIMESTAMP WITH TIME ZONENOT NULL
);
The text was updated successfully, but these errors were encountered:
Attempting to use the generate executable on a simple postgres database.
sqlingo-gen-postgres postgresql://postgres:password@localhost:5432/dbname?sslmode=disable > ./internal/gen_models.go
gives:
The database schema:
The text was updated successfully, but these errors were encountered: