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

Bump diesel_infer_schema from 1.0.0-beta1 to 1.2.0 #40

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

Conversation

dependabot-preview[bot]
Copy link

Bumps diesel_infer_schema from 1.0.0-beta1 to 1.2.0.

Release notes

Sourced from diesel_infer_schema'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

1.1.1

This release fixes a minor issue with our r2d2 support. In 1.1 we recommend that people access r2d2 via diesel::r2d2. However, r2d2 has a type called Error, which was shadowed by our own type called Error in that same module, making it inaccessible. This release adds an alias PoolError to point at r2d2::Error.

Thanks to YetAnotherMinion for working on this release.

1.1.0

Improved Support for Adding New Types

The primary focus of this release was improving the ergonomics of adding support for new types in Diesel.

... (truncated)
Changelog

Sourced from diesel_infer_schema's changelog.

[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.

  • Tables with more than 56 columns are now supported by enabling the
    128-column-tables feature.

  • Delete statements can now be boxed. This is useful for conditionally modifying
    the where clause of a delete statement. See DeleteStatement::into_boxed
    for details.

  • Update statements can now be boxed. This is useful for conditionally modifying
    the where clause of a update statement. See UpdateStatement::into_boxed
    for details.
  • Added order_by as an alias for order.
... (truncated)
Commits
  • 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
  • 17d6e92 Update u16 impls to smallint
  • d75ebce Support unsigned types for mysql
  • 11cd45a Fix failing build
  • 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 [patch|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
  • @dependabot use (this|these) reviewer[s] will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use (this|these) assignee[s] will set the current assignees 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)
  • Pull request limits (per update run and/or open at any time)
  • 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.

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

Successfully merging this pull request may close these issues.

1 participant