hanami / db

The database layer for Hanami
MIT License
7 stars 2 forks source link

Account for mysql, sqlite adapters in testing logic #7

Closed alassek closed 4 months ago

alassek commented 4 months ago

MySQL is largely the same as postgres here, but sqlite requires some accomodation.

There are two ways to use sqlite:

  1. sqlite::memory for an in-memory database
  2. sqlite:///app/config/bookshelf_dev.db for a filename

We will ignore in-memory databases and apply the standard renaming logic to the basename of the database filenames, preserving the extname.

hanami/hanami#1395