drush icon indicating copy to clipboard operation
drush copied to clipboard

suggested command for installing into memory with sqlite crashes

Open joachim-n opened this issue 1 year ago • 1 comments

Describe the bug The help for si suggests this:

 drush si --db-url=sqlite://:memory:?module=sqlite      Install using SQLite in-memory database, that is not persisted. Useful for testing.

However, that crashes with:

In Connection.php line 1325:

  [InvalidArgumentException]
  Minimum requirement: driver://host/database

To Reproduce

ddev drush si --db-url=sqlite://:memory:?module=sqlite

Expected behavior Installed Drupal.

Actual behavior Crashed.

Workaround Is there another way to do the desired action?

System Configuration

Q A
Drush version? 13.0.0.0-beta5
Drupal version? 11.x
PHP version 8.3
OS? Mac

Additional information Add any other context about the problem here.

joachim-n avatar Jun 25 '24 12:06 joachim-n

I can reproduce this. Hope someone can find a fix in docs and/or code.

weitzman avatar Aug 02 '24 11:08 weitzman