Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow downloading sqlite DB #53

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Allow downloading sqlite DB #53

wants to merge 9 commits into from

Conversation

mglaman
Copy link
Owner

@mglaman mglaman commented Jul 11, 2024

fixes #10

@mglaman
Copy link
Owner Author

mglaman commented Jul 12, 2024

This will error with non-PDO commands per https://www.drupal.org/project/drupal/issues/3036487

    // Create a user-space case-insensitive collation with UTF-8 support.
    $pdo->sqliteCreateCollation('NOCASE_UTF8', ['Drupal\Component\Utility\Unicode', 'strcasecmp']);

playground/public/assets/export-db.php Outdated Show resolved Hide resolved
playground/public/assets/export-db.php Outdated Show resolved Hide resolved
Comment on lines +103 to +105
// TODO support this collation somehow
// see https://www.drupal.org/project/drupal/issues/3036487
$sql = str_replace('NOCASE_UTF8', 'NOCASE', $sql);
Copy link
Owner Author

@mglaman mglaman Jul 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOCASE_UTF8 is added at runtime by Drupal via PDO. I don't think there is any way to support this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow exporting Drupal database to use locally, with DDEV.
1 participant