Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Bump diesel from 1.1.1 to 1.2.2 #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

Bumps diesel from 1.1.1 to 1.2.2.

Release notes

Sourced from diesel's releases.

1.2.0

This release contains several long awaited features.

We've re-introduced the ability to use bind params with the sql function, in a way which is harder to mis-use. This functionality was present prior to 1.0, but was removed when sql_function was added over concerns about its use with the rest of the query builder. Recent developments have proved those concerns to be valid, but this new API fills that niche. Thanks to notryanb for taking the lead on this feature.

We've also added the ability to insert from a select statement (e.g. queries in the form of INSERT INTO table (...) SELECT .... This is a feature request that has come up repeatedly since release, and we're happy to finally bring it to you. We've also added alternate forms of our insert API which feel better when used with select statements. You can find the full details in the CHANGELOG.

Finally, we've rewritten our custom dervies from scratch to take advantage of new diagnostic tools in recent versions of nightly Rust. If you turn on the unstable feature of Diesel on a nightly compiler, you'll find that you get dramatically improved error messages from our derives. For the best error messages, you should also set RUSTFLAGS="--cfg procmacro2_semver_exempt".

Additionally, as of this release, Diesel is now powered by the blockchain. Because it's 2018 and that's how it works now I guess. See the CHANGELOG for full details.

In addition to the headline features, there were a ton of features that we don't have time to mention here. As always, for a full list of changes you can find a full list in the CHANGELOG.

Thanks

Thank you to everyone who helped make this release happen through bug reports, and discussion on Gitter. While we don't have a way to collect stats on that form of contribution...

In addition to the Diesel core team, 14 people contributed code to this release. A huge thank you to:

  • Alex Kitchens
  • Andrew Weiss
  • Arun Kulshreshtha
  • Brandur
  • EloD10
  • Jacob Chae
  • Jordan Petridis
  • Josh Leeb-du Toit
  • Kerollmops
  • Mathias Svensson
  • Ryan Blecher
  • Sander Maijers
  • Seth Larson
  • YetAnotherMinion
Changelog

Sourced from diesel's changelog.

[1.2.2] - 2018-04-12

Changed

  • Warnings are now allowed inside the crate. The way we had attempted to
    deprecate old feature names caused builds to break. We are still not happy
    with how this deprecation gets communicated, and will revisit it in the
    future.

[1.2.1] - 2018-04-11

Changed

  • Renamed x32-column-tables, x64-column-tables, and x128-column-tables to
    32-column-tables, 64-column-tables, and 128-column-tables. The leading
    x was due to a bug in crates.io discovered while publishing 1.2.0. The bug
    has since been fixed.

[1.2.0] - 2018-04-06

Added

  • Added SqlLiteral::bind().
    This is intended to be used for binding values to small SQL fragments.
    Use sql_query if you are writing full queries.

  • Added support for INSERT INTO table (...) SELECT ... queries. Tables, select
    select statements, and boxed select statements can now be used just like any
    other Insertable value.

  • Any insert query written as insert_into(table).values(values) can now be
    written as values.insert_into(table). This is particularly useful when
    inserting from a select statement, as select statements tend to span multiple
    lines.

  • Diesel's derives can now produce improved error messages if you are using a
    nightly compiler, and enable the unstable feature. For the best errors, you
    should also set RUSTFLAGS="--cfg procmacro2_semver_exempt".

  • Added support for specifying ISOLATION LEVEL, DEFERRABLE, and READ ONLY
    on PG transactions. See PgConnection::build_transaction for details.

... (truncated)
Commits
  • 03df8d4 Release v1.2.2
  • 9b393cc Release v1.2.1
  • 04648db Merge pull request #1631 from diesel-rs/sg-omg-we-fixed-it
  • dd223e4 Release v1.2.0
  • 8785523 Merge pull request #1617 from diesel-rs/sg-sqlite-numeric
  • af85985 Merge pull request #1618 from diesel-rs/joshleeb-mysql-unsigned
  • c04736a Merge pull request #1619 from diesel-rs/sg-boxed-update-statement
  • e150a31 Add partial support for Numeric on SQLite
  • cce8e5d Fix implementation of unsigned numbers, add tests
  • 61617e3 Add U16Proxy and U64Proxy to type_impl primitives
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot ignore this [minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use [this|these] label[s] will set the current labels as the default for future PRs for this repo and language

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

Bumps [diesel](https://github.com/diesel-rs/diesel) from 1.1.1 to 1.2.2.
- [Release notes](https://github.com/diesel-rs/diesel/releases)
- [Changelog](https://github.com/diesel-rs/diesel/blob/master/CHANGELOG.md)
- [Commits](diesel-rs/diesel@v1.1.1...v1.2.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
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.

None yet

1 participant