Jump to content

Recommended Posts

Posted

SQLite would be nice, but not really needed. If possible and changes to database abstraction is needed a move to PDO would make it possible.

At the moment it would be interesting because of a small private php project which should run on cheap webhostings without extra features. So sqlite would reduce the requirements *g*
With a small private projects I would try to keep hosting cost low...

But web hostings with mysql isn't expensive today...

 

Posted
Quote

eeded. If possible and changes to database abstraction is needed a move to PDO would make it possi

pw alreduy.usus PDO

  • Like 2
Posted

@WillyC Haven't checked it... Assumed it because of much work to implement sqlite. So it sounds like compatibility and testing part because pdo sqlite would be possible?

PW db / selectors are awesome and complex. So I' think it isn't an easy part with very low priority...

 

 

Posted

There are two parts to this. Connection to a database and SQL features/parity in results. Connection to the db is abstracted through PDO and most things in processwire use the PDO powered database connection. In old code you might still find things calling to the old mysqli powered processwire class. 

The part about sql features and their parity in implementation/results is another topic, which requires a good amount of knowledge of both databases. Actually PWs query engine isn't really using many fancy sql features, most stuff is just many joins + conditions, but I don't know sqlite well enough to evaluate if everything will be working there as well.

  • Like 3
  • 8 months later...
  • 4 months later...
Posted

I would love to see SQLite support in PW. It would allow me to make my PW dev environment portable. I use my perosnal laptop and work PC for development and carry projects in USB Disk. All of my Nodejs and python projects are portable because they all use portable database files (not the database server instance, the actual data files). I know MySQL allows to specify a --datadir when starting, but this is not very portable (at least not for me). I've tried containerizing php and mysql for PW developement, but didn't work out the way I wanted. It just  doesn't allow me to get started immediately.

If sqlite support is implemented we can use a lightweight portable db in development and migrate to MySQL in production.

 

  • Like 2
  • 4 years later...
Posted

I'm currently looking at Grav/Kirby/Statamic etc. for certain simple sites where MySql doesn't make sense, but I'd much rather use PW with SQLite.

  • Like 3
  • 1 month later...
  • 1 month later...
Posted

SQLite support would be especially great to signal that ProcessWire prioritizes ease of installation. It's a sane, pragmatic default that avoids the hassle of networked databases. I would assume 80% of new sites to just use that over MySQL if it was available. That said, the selector engine and quite a few third-party modules probably do rely a lot on the strongly typed columns of MariaDB, so I'm not sure how feasible this really is. Types in SQLite are very unintuitive, coming from the MySQL world.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...