-
Notifications
You must be signed in to change notification settings - Fork 297
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
Add collation support #1492
base: master
Are you sure you want to change the base?
Add collation support #1492
Conversation
Check for idempotency of collate= migrations
This lets the initial CREATE TABLE expression generate correctly with the collate clause, eliding the need for an immediate automigration to collate columns.
This new function allows for creating a `RawSqlite SqlBackend` manually (without exposing the `RawSqlite` constructor) for code that wants to open such a connection without having to opt-in to the resource management of `withRawSqliteConnInfo` and co. This is useful in my particular use case for creating a custom pool, since I am not constrained by the `resource-pool` API re-exposed by `persistent-sqlite`.
I'm just going to mark this PR ready for review in any case; we can review formatting manually if there's no easy way to work around this issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks great!
This is unfortunately a breaking change and will need to wait for 2.15 to go out.
-- will associate with a particular field. | ||
-- | ||
-- @since 2.15.0.0 | ||
newtype CollationName = CollationName { unCollatioName :: Text } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newtype CollationName = CollationName { unCollatioName :: Text } | |
newtype CollationName = CollationName { unCollationName :: Text } |
* [#1488](https://github.com/yesodweb/persistent/pull/1488) | ||
* Add `openRawSqliteConn` for creating `RawSqlite SqlBackend` connections | ||
that aren't automatically cleaned-up. | ||
* [#1459](https://github.com/yesodweb/persistent/pull/1459) | ||
* Make use of `CautiousMigration` type alias for clarity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changelog entries will need to be moved
This PR:
openRawSqliteConn
#1488For context, these features were up-ported from a feature branch we have been using at Supercede. This branch was in turn branched off of #1488 , thus this PR will effectively subsume it since it hasn't been merged yet. Isaac (the PR author) has left the company since then, so I believe the original PR will remain stale.
Tests may be lacking; please do inform me if I overlooked anything test-wise!
Before submitting your PR, check that you've:
@since
declarations to the Haddockstylish-haskell
on any changed files..editorconfig
file for details)After submitting your PR:
(unreleased)
on the Changelog