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

New driver: SQLite3 #5737

Merged
merged 1 commit into from
Oct 10, 2022
Merged

New driver: SQLite3 #5737

merged 1 commit into from
Oct 10, 2022

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Oct 9, 2022

Q A
Type feature
Fixed issues N/A

Summary

Replaces #840, #2264.

This PR adds a driver for ext-sqlite3, allowing us to use SQLite without PDO.

It is a bit unfortunate that we've mapped the URL scheme sqlite3:// to the PDO_SQLite driver via an alias. This is why I've introduced a new scheme ext-sqlite3://. On DBAL 4 where we've removed the aliases, we can change this back to sqlite3://. But I'm open for a better solution. As discussed, the sqlite3:// URL scheme will work in DBAL 4, in DBAL 3 the driverClass parameter has to be used for now.

@derrabus derrabus requested a review from morozov October 9, 2022 22:37
@derrabus derrabus force-pushed the feature/sqlite3 branch 2 times, most recently from ccf2cab to 446a822 Compare October 9, 2022 22:50
src/Driver/SQLite3/Driver.php Outdated Show resolved Hide resolved
ci/github/phpunit/pdo_sqlite.xml Show resolved Hide resolved
src/Driver/SQLite3/Connection.php Outdated Show resolved Hide resolved
src/Driver/SQLite3/Exception.php Show resolved Hide resolved
src/DriverManager.php Outdated Show resolved Hide resolved
src/Types/DecimalType.php Show resolved Hide resolved
@derrabus derrabus force-pushed the feature/sqlite3 branch 3 times, most recently from 46dc4b0 to 60aa8d3 Compare October 10, 2022 09:04
@derrabus derrabus force-pushed the feature/sqlite3 branch 2 times, most recently from 9297af3 to 2109049 Compare October 10, 2022 09:55
Copy link
Member

@morozov morozov left a comment

Choose a reason for hiding this comment

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

Just one last-minute suggestion. Looks good otherwise 👍

src/Driver/SQLite3/Driver.php Outdated Show resolved Hide resolved
@derrabus
Copy link
Member Author

Thank you for your very thorough review! ❤️

@derrabus derrabus merged commit 81ee195 into doctrine:3.5.x Oct 10, 2022
@derrabus derrabus deleted the feature/sqlite3 branch October 10, 2022 21:13
@morozov morozov added this to the 3.5.0 milestone Oct 13, 2022
src/Driver/SQLite3/Driver.php Show resolved Hide resolved
src/Driver/SQLite3/Driver.php Show resolved Hide resolved
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants