Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support relative database path for sqlite3 driver #1409

Open
muesli opened this issue Aug 9, 2024 · 2 comments
Open

Support relative database path for sqlite3 driver #1409

muesli opened this issue Aug 9, 2024 · 2 comments

Comments

@muesli
Copy link

muesli commented Aug 9, 2024

What version of SQLBoiler are you using (sqlboiler --version)?

SQLBoiler v4.16.2

What is your database and version (eg. Postgresql 10)

sqlite3

If this happened at generation time what was the full SQLBoiler command you used to generate your models? (if not applicable leave blank)

sqlboiler sqlite3

Further information. What did you do, what did you expect?

I realize the sqlite3 driver's README states to use absolute paths, but this is rather inconvenient to run on multiple systems / for different users. Being able to specify a relative path would be greatly appreciated.

Specifying a relative path to a database file will result in the generated tests failing (no such table). If that's the expected outcome and intended behavior, rejecting relative paths would improve the experience for first time users of sqlboiler.

@muesli
Copy link
Author

muesli commented Aug 9, 2024

Related, but not exactly the same issue: #1407.

@stephenafamo
Copy link
Collaborator

I'll be happy to review a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants