I’ve got a PHP app deployed to the App platform and would like to use a SQLite3 DB with it. I’m new to SQLite (and the App platform), but familiar with MySQL. My boss suggested using a SQLite database since it’s a real lightweight database.
Do I need to SQLite via a build script?
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Line 4 should read “Do I need to install SQLite via a build script?”
App Platform apps are deployed in containers which are ephemeral. In events such as new deployments, your app crashes, or there are cluster issues and we evacuate your app to another cluster all of the filesystem data will be gone. For this reason we do not recommend using SQLite on App Platform.
We do offer a low cost PostgreSQL dev database which can be upgraded to a more powerful, highly available production database when you’re ready which would be a great choice. Of course, any database hosted outside of App Platform (like MySQL) will also work.
Another option is to use Lightstream to replicate the sqlite db on s3 or digitalocean spaces
https://litestream.io/guides/s3/ https://litestream.io/guides/digitalocean/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
