megaman's avatar

Swap PDO with a different database access library

Eloquent uses DBAL and PDO.

IS it possible to reconfigure Laravel to use other database access libraries such as the SQLite3 PHP extension

0 likes
4 replies
martinbean's avatar

@megaman Why? There’s a SQLite PDO driver.

But in answer to your question: no. Eloquent is based on PDO.

megaman's avatar

We use Sqlite for testing but this does not have support for Geometry functions

there is an extensions which adds geometry function support. But it turns out that PDO does not support extending Sqlite ( the SQLite3 PHP extension does )

Sinnbeck's avatar

Then you either need to use mysql for testing.. or rewrite eloquent + builder to support sqliteengine, and extend that class in all models.. I suggest the first one

Please or to participate in this conversation.