cornucopia-rs / cornucopia

Generate type-checked Rust from your PostgreSQL.
Other
755 stars 31 forks source link

Confusing behavior with `cornucopia schema` #216

Open wrapperup opened 1 year ago

wrapperup commented 1 year ago

When running cornucopia schema without any arguments, I expected it to either provide an error or use the schema.sql in the cwd. Instead, I got an error like this in one of the examples, which made me think it was broken:

image

The error is technically correct, but I thought this was because the example was broken. Could it try using ./schema.sql by default?