Skip to content

Commit

Permalink
Merge pull request #114 from thedodd/dodd/export-transaction
Browse files Browse the repository at this point in the history
Export sqlx_core::Transaction.
  • Loading branch information
mehcode authored Feb 25, 2020
2 parents 18a925f + 5dae1b6 commit 80f402b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
24 changes: 15 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Export sqlx_core::Transaction.

## 0.2.5 - 2020-02-01

### Fixed
Expand All @@ -13,11 +19,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- After a large review and some battle testing by [@ianthetechie](https://github.com/ianthetechie)
of the `Pool`, a live leaking issue was found. This has now been fixed by [@abonander] in [#84] which
included refactoring to make the pool internals less brittle (using RAII instead of manual
included refactoring to make the pool internals less brittle (using RAII instead of manual
work is one example) and to help any future contributors when changing the pool internals.

- Passwords are now being precent decoding before being presented to the server [[@repnop]]

- [@100] Fix `FLOAT` and `DOUBLE` decoding in MySQL

[#84]: https://github.com/launchbadge/sqlx/issues/84
Expand All @@ -31,7 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [[#72]] Add `PgTypeInfo::with_oid` to allow simple construction of `PgTypeInfo` which enables `HasSqlType`
to be implemented by downstream consumers of SQLx [[@jplatte]]

- [[#96]] Add support for returning columns from `query!` with a name of a rust keyword by
- [[#96]] Add support for returning columns from `query!` with a name of a rust keyword by
using raw identifiers [[@yaahc]]

- [[#71]] Implement derives for `Encode` and `Decode`. This is the first step to supporting custom types in SQLx. [[@Freax13]]
Expand Down Expand Up @@ -65,7 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix stall when requesting TLS from a Postgres server that explicitly does not support TLS (such as postgres running inside docker) [[@abonander]]

- [[#66]] Declare used features for `tokio` in `sqlx-macros` explicitly

[#66]: https://github.com/launchbadge/sqlx/issues/66

## 0.2.1 - 2020-01-16
Expand All @@ -77,7 +83,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#64]: https://github.com/launchbadge/sqlx/pull/64
[#65]: https://github.com/launchbadge/sqlx/pull/65

- [[#55]] Use a shared tokio runtime for the `query!` macro compile-time execution (under the `runtime-tokio` feature) [[@udoprog]]
- [[#55]] Use a shared tokio runtime for the `query!` macro compile-time execution (under the `runtime-tokio` feature) [[@udoprog]]

[#55]: https://github.com/launchbadge/sqlx/pull/55

Expand All @@ -86,15 +92,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- https://github.com/launchbadge/sqlx/issues/47

### Added

- Support Tokio through an optional `runtime-tokio` feature.

- Support SQL transactions. You may now use the `begin()` function on `Pool` or `Connection` to
- Support SQL transactions. You may now use the `begin()` function on `Pool` or `Connection` to
start a new SQL transaction. This returns `sqlx::Transaction` which will `ROLLBACK` on `Drop`
or can be explicitly `COMMIT` using `commit()`.

- Support TLS connections.

## 0.1.4 - 2020-01-11
Expand All @@ -120,7 +126,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## 0.1.2 - 2020-01-03

### Added

- Support for Authentication in MySQL 5+ including the newer authentication schemes now default in MySQL 8: `mysql_native_password`, `sha256_password`, and `caching_sha2_password`.

- [`Chrono`](https://github.com/chronotope/chrono) support for MySQL was only partially implemented (was missing `NaiveTime` and `DateTime<Utc>`).
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub use sqlx_core::{arguments, describe, error, pool, row, types};
// Types
pub use sqlx_core::{
Connect, Connection, Database, Error, Executor, FromRow, Pool, Query, QueryAs, Result, Row,
Transaction,
};

// Functions
Expand Down

0 comments on commit 80f402b

Please sign in to comment.