-
Couldn't load subscription status.
- Fork 1.2k
add manual installation sqlite #1118
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
Conversation
|
quiloos39 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
documentation/docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md Line 45 in f4dccf3
It wasn't mentioned in the documentation that SQLite depends on better-sqlite3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @quiloos39. Thank you for your contribution. I have made a few suggestions to improve the content. Let me know what you think.
docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md
Outdated
Show resolved
Hide resolved
| }, | ||
| }); | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the following code for TypeScript as well (using the code-group/code block like above)?
import path from 'path';
export default ({ env }) => ({
connection: {
client: 'sqlite',
connection: {
filename: path.join(__dirname, '..', '..', env('DATABASE_FILENAME', '.tmp/data.db')),
},
useNullAsDefault: true,
},
});
docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md
Outdated
Show resolved
Hide resolved
…ons/databases/sqlite.md Co-authored-by: Shaun Brown <97027841+StrapiShaun@users.noreply.github.com>
…ons/databases/sqlite.md Co-authored-by: Shaun Brown <97027841+StrapiShaun@users.noreply.github.com>
|
Hello, @quiloos39 could you also sign the CLA so I can merge your contribution? Thanks! |
Hello, I already accepted CLA i am not sure why it's not updated here. |
What does it do?
Fixes the
error: knex: Required configuration option 'client' is missing.error, When using SQLite as database and mentioned dependency doesn't exist.Why is it needed?
I noticed that for some starters/templates. If the developer wants to switch back to the SQLite database and the dependency I mentioned is not available, it will return with an error message saying the client doesn't exist.
Related issue(s)/PR(s)
None