Skip to content

PDO\SQLite: add support for backup API #21323

Open

Description

@bohwaz

Description

SQLite3 class provides support for the SQLite3 backup API: https://www.php.net/manual/en/sqlite3.backup.php

 SQLite3::backup(SQLite3 $destination, string $sourceDatabase = "main", string $destinationDatabase = "main"): bool

It would be nice to have the same in PDO\SQLite:

PDO\SQLite::backup(PDO\SQLite $destination, string $sourceDatabase = "main", string $destinationDatabase = "main"): bool

Activity

  1. ndossche commented on Mar 1, 2026

    @ndossche
    Member

    Yeah that's a fair request. I might give this a shot either today or tomorrow.

  2. self-assigned this
    on Mar 1, 2026
  3. bohwaz commented on Mar 1, 2026

    @bohwaz
    ContributorAuthor

    \o/ thanks!

    With your work we are almost at the point of having the same features in both extensions! Maybe at one point we'll be able to deprecate \SQLite3 :)

  4. ndossche commented on Mar 1, 2026

    @ndossche
    Member

    Maybe at one point we'll be able to deprecate \SQLite3 :)

    Careful, you'll awake the BC police ;p

  5. bohwaz commented on Mar 1, 2026

    @bohwaz
    ContributorAuthor

    I'm part of the BC police but I think in the long term this would be nice to have only one codebase to maintain :)

  6. linked a pull request that will close this issueAdd Pdo\Sqlite::backup() #21326on Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions