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
Having a Go project with a file structure like the following is problematic when using absolute or relative paths as suggested for the sqlite3 database in the sqlboiler config.
The sqlite3 driver is not capable of finding the database sqlite.db as relative paths don't match. The problem can be solved by (optionally) resolving the sqlite3 database' path relative to the sqlboiler config, not the execution context.
The text was updated successfully, but these errors were encountered:
Appreciate the answer. Would you put it in the backlog for a v5 please?
Sure. Although, I'm not really keeping track of them right now.
Perhaps if you send in a PR, I could mark it as "breaking" and leave it unmerged for now.
Having a Go project with a file structure like the following is problematic when using absolute or relative paths as suggested for the sqlite3 database in the sqlboiler config.
sqlboiler.toml
The generation command works fine if ran in root ✅
The path-adjusted Go generate command in
main.go
will fail ❌//go:generate sqlboiler --config ../sqlboiler.toml --output ../models sqlite3
The sqlite3 driver is not capable of finding the database
sqlite.db
as relative paths don't match. The problem can be solved by (optionally) resolving the sqlite3 database' path relative to the sqlboiler config, not the execution context.The text was updated successfully, but these errors were encountered: