sqstorage icon indicating copy to clipboard operation
sqstorage copied to clipboard

Support SQLite

Open n1trux opened this issue 5 years ago • 4 comments

I'd really like to run this on devices without a "fat" DB daemon, which is where SQLite would be beneficial.

n1trux avatar Jan 04 '20 16:01 n1trux

+1, it would make it really quick and easy. SQLite can handle websites with up to millions of request a day. So for a self hosted private service, SQLite should be strong enough.

wernersbacher avatar Jan 09 '20 07:01 wernersbacher

I agree, it might be nice to have SQLite support - but at the moment, there are several database changes going on and possible coming and adding another database to work with, might be slowing down the development.

When things are more settled this is definitely something to look into.

jrie avatar Jan 14 '20 15:01 jrie

at the moment, there are several database changes going on and possible coming and adding another database to work with, might be slowing down the development.

Or you could use an abstraction layer which works with both.

I found Medoo on the lightweight-php list which "supports all SQL databases, including MySQL, MSSQL, SQLite, MariaDB, PostgreSQL, Sybase, Oracle and more".

Changes to the database scheme could be implemented by properly versioning the database (related: #34) and creating migrations. These could easily be written with Medoo if there's a mismatch between installed DB version and upgraded DB version.

n1trux avatar Oct 04 '20 09:10 n1trux

Would prefer to wait for https://github.com/SergeyTsalkov/meekrodb/issues/66 to keep the current wrapper syntax alive.

schnoog avatar Oct 24 '20 18:10 schnoog