lundi 1 février 2016

How to import SQLite Database from disk file in memory when using laravel?

I am using in memory SQLite datase with my Laravel app for testing.

'database' => ':memory:'

What I need is before running tests - import some specific data from already existing SQLite database file(can't use seeder, because there is too much data already). How can I import data from disk file to in-memory before running tests?

Aucun commentaire:

Enregistrer un commentaire