How to switch database backends in Genie.jl if you already created an App?

Viewed 60
2 Answers

You switch it manually, it's quite easy:

1/ add support for SQLite via SearchLightSQLite:

pkg> add SearchLightSQLite

2/ edit db/connection.yml and set adapter to SQLite and database to the path where you want to store the DB, ex:

dev:
  adapter: SQLite
  database: db/dev.sqlite

3/ Restart the app

For anyone that might face the same challenge, You need to add SearchLightMySQL to the project by running Pkg add SearchLightMySQL

Related