Commit Graph

105 Commits

Author SHA1 Message Date
Zeb Piasecki
edc7fdecfb gate wasm support behind feature flag 2023-06-07 20:53:16 -04:00
Zeb Piasecki
64bf779f7c feat: add support for wasm
Adds support for compiling to WASM environments that provide JS via
wasm-bindgen. Because there's no standardized socket API the caller must
provide a connection that implements AsyncRead/AsyncWrite to
connect_raw.
2023-06-03 17:08:59 -04:00
Steven Fackler
a46796798a
Release postgres-protocol v0.6.5 2023-03-27 19:02:39 -04:00
Steven Fackler
7cd7b187a5
Rename accessor 2023-02-26 16:44:25 -05:00
Steven Fackler
3007dd82c6
Merge pull request #1000 from fakeshadow/protocol/export_bytes
export Bytes type through DataRowBody::storage_bytes method.
2023-02-26 16:43:47 -05:00
Steven Fackler
842eacefc8
fix ci 2023-02-25 10:10:04 -05:00
fakeshadow
eb086d30a3 export Bytes type through DataRowBody::storage_bytes method. 2023-02-24 09:56:05 +08:00
Steven Fackler
10bf27128d
fix build 2023-01-09 20:41:16 -05:00
dependabot[bot]
c5cb28bcaf
Update base64 requirement from 0.20 to 0.21
Updates the requirements on [base64](https://github.com/marshallpierce/rust-base64) to permit the latest version.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases)
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: base64
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 13:06:33 +00:00
Steven Fackler
8ab8f1a555
Clippy 2022-12-30 08:43:24 -05:00
Pekka Enberg
d368475b50 Add flush() to front-end messages
The PostgreSQL wire protocol has a "Flush" message, which can be used by
the clients for long-lived connections. Add a flush() helper for it.
2022-12-30 13:47:41 +02:00
dependabot[bot]
748167d5f8
Update base64 requirement from 0.13 to 0.20
Updates the requirements on [base64](https://github.com/marshallpierce/rust-base64) to permit the latest version.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases)
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.13.0...v0.20.0)

---
updated-dependencies:
- dependency-name: base64
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-12 13:07:35 +00:00
xxchan
be90d0e848 derive Debug for SimpleQueryMessage 2022-12-07 12:29:28 +01:00
Steven Fackler
7faeea5acc
Fix clippy/deprecation warnings 2022-11-21 15:19:11 -08:00
Steven Fackler
da78d4ea06
Release postgres-protocol v0.6.4 2022-04-30 08:24:30 -04:00
Matt Oliver
6fae6552ec Fix tests, replace match with matches! 2022-03-16 21:23:15 -05:00
Matt Oliver
d9d283e131 Split out ltree,query,txtquery protocol parsers, add tests, rust fmt 2022-03-16 21:23:15 -05:00
Matt Oliver
944b72974f Add ltree, lquery and ltxtquery support 2022-03-16 21:23:15 -05:00
Steven Fackler
630f179892
Release postgres-protocol v0.6.3 2021-12-10 19:21:59 -05:00
Steven Fackler
8ead6e6c69
Update hash crates 2021-12-08 18:30:44 -05:00
Steven Fackler
33703689e0 Clean up licenses 2021-10-28 19:22:13 -04:00
Steven Fackler
349c38b1fe Release postgres-protocol v0.6.2 2021-09-29 19:27:15 -04:00
Steven Fackler
3eb5a4dab9 actually fix clippy 2021-06-23 20:15:57 -04:00
Steven Fackler
8f7481a86c fix clippy 2021-06-23 20:02:51 -04:00
Steven Fackler
52de269367 fix clippy 2021-05-18 20:47:26 -04:00
Steven Fackler
4e8b9078a1 fix build 2021-04-29 17:07:24 -04:00
dependabot[bot]
83616fadb5
Update hmac requirement from 0.10 to 0.11
Updates the requirements on [hmac](https://github.com/RustCrypto/MACs) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/MACs/releases)
- [Commits](https://github.com/RustCrypto/MACs/compare/hmac-v0.10.0...hmac-v0.11.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-29 21:02:13 +00:00
Steven Fackler
a598c52906 Release postgres-protocol v0.6.1 2021-04-03 17:06:51 -04:00
Steven Fackler
ad2c8cf592 clippy 2021-03-16 20:44:50 -04:00
Jeff Davis
e4e48a06b7 Add password module for hashing on the client side.
Hashing a password on the client side is useful so that you can set a
user's password without ever sending it in plain text to the
server. This avoids leaking passwords in the log or elsewhere.
2021-01-12 14:39:10 -08:00
Jeff Davis
f3cbc8ce04 PgLsn type. 2021-01-09 15:18:26 -08:00
Nikhil Benesch
7537e8a918 postgres-protocol: use RustCrypto md-5 crate
Swap the md5 crate for the md-5 crate.  Despite the latter's somewhat
more suspicious name, it is part of the wider RustCrypto ecosystem, and
shares code with the sha2 crate that postgres-protocol already uses.
2021-01-08 13:35:45 -05:00
Steven Fackler
06dcebf248 Release postgres-protocol v0.6.0 2020-12-25 08:51:47 -05:00
Nikhil Benesch
f1729e4636 deps: upgrade to tokio v1.0 ecosystem 2020-12-24 18:38:05 -05:00
Steven Fackler
07aa69febf update rand 2020-12-21 10:05:20 -05:00
Jeff Davis
c573edbdfb Documentation fixup. 2020-12-15 16:50:26 -08:00
Jeff Davis
aadf9420ef Add escape_identifier() and escape_literal(). 2020-11-28 22:35:41 -08:00
dependabot-preview[bot]
a2ab2aab5b
Update hmac requirement from 0.9 to 0.10
Updates the requirements on [hmac](https://github.com/RustCrypto/MACs) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/MACs/releases)
- [Commits](https://github.com/RustCrypto/MACs/compare/hmac-v0.9.0...hmac-v0.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-19 13:24:08 +00:00
Steven Fackler
3f350680d5 Release postgres-protocol v0.5.3 2020-10-17 14:54:00 -04:00
Steven Fackler
3a26c926f2
Merge pull request #672 from sfackler/tokio-03
Upgrade to tokio 0.3
2020-10-17 09:57:07 -04:00
wuaoxiang
7443982368 Make postgres protocol version value more readable 2020-10-17 11:33:21 +08:00
Steven Fackler
d1f9d6d802 fix clippy 2020-10-15 21:14:13 -04:00
dependabot-preview[bot]
6c506c1c16
Update base64 requirement from 0.12 to 0.13
Updates the requirements on [base64](https://github.com/marshallpierce/rust-base64) to permit the latest version.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases)
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.12.0...v0.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-01 13:18:42 +00:00
dependabot-preview[bot]
26d7b38b03
Update hmac requirement from 0.8 to 0.9
Updates the requirements on [hmac](https://github.com/RustCrypto/MACs) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/MACs/releases)
- [Commits](https://github.com/RustCrypto/MACs/compare/hmac-v0.8.0...hmac-v0.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-12 13:17:41 +00:00
Steven Fackler
90f763b968 Release postgres-protocol v0.5.2 2020-07-06 16:30:43 -04:00
Steven Fackler
a12efc41d7 rustfmt 2020-06-10 16:46:55 -07:00
Steven Fackler
58a7856646 Update hmac and sha2 2020-06-10 16:45:58 -07:00
Steven Fackler
e25987656e Release postgres-protocol v0.5.1 2020-03-17 15:36:22 -07:00
dependabot-preview[bot]
0fb9ede350
Update base64 requirement from 0.11 to 0.12
Updates the requirements on [base64](https://github.com/marshallpierce/rust-base64) to permit the latest version.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases)
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.11.0...v0.12.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-09 13:24:28 +00:00
Lachezar Lechev
66194766d0
Fix repository link 2020-01-02 14:08:15 +02:00