Skip to content

PDO: Add support for SQLite open flags #2734

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

Closed
wants to merge 1 commit into from

Conversation

bohwaz
Copy link
Contributor

@bohwaz bohwaz commented Sep 3, 2017

This allows to open a SQLite database in read-only, just like with the SQLite3 extension.

Example usage:

$pdo = new PDO('/tmp/db.sqlite', null, null, [
    PDO::SQLITE_ATTR_OPEN_FLAGS => PDO::SQLITE_READONLY
]);

@krakjoe krakjoe added the Feature label Sep 6, 2017
@krakjoe
Copy link
Member

krakjoe commented Sep 6, 2017

Merged ed2f651

Thanks.

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

Successfully merging this pull request may close these issues.

2 participants