Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sfackler/rust-postgres
Native PostgreSQL driver for the Rust programming language
https://github.com/sfackler/rust-postgres
Last synced: 6 days ago
JSON representation
Native PostgreSQL driver for the Rust programming language
- Host: GitHub
- URL: https://github.com/sfackler/rust-postgres
- Owner: sfackler
- License: apache-2.0
- Created: 2013-07-23T04:43:50.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T12:21:20.000Z (9 months ago)
- Last Synced: 2024-01-30T17:21:51.610Z (9 months ago)
- Language: Rust
- Homepage:
- Size: 4.68 MB
- Stars: 3,188
- Watchers: 50
- Forks: 394
- Open Issues: 106
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-rust-cn - sfackler/rust-postgres - ci.org/sfackler/rust-postgres.svg?branch=master">](https://travis-ci.org/sfackler/rust-postgres) (Libraries / Database)
- awesome-rust - sfackler/rust-postgres - ci.org/sfackler/rust-postgres.svg?branch=master">](https://travis-ci.org/sfackler/rust-postgres) (Libraries / Database)
- awesome-rust - sfackler/rust-postgres - ci.org/sfackler/rust-postgres.svg?branch=master">](https://travis-ci.org/sfackler/rust-postgres) (代码 / 数据库)
- awesome-rust - sfackler/rust-postgres
- awesome-rust-cn - sfackler/rust-postgres
- awesome-luooooob - sfackler/rust-postgres - Native PostgreSQL driver for the Rust programming language (Rust)
- awesome-rust-zh - sfackler/rust-postgres - 土生土长的[PostgreSQL](https://www.postgresql.org/)客户端 [<img src="https://api.travis-ci.org/sfackler/rust-postgres.svg?branch=master">](https://travis-ci.org/sfackler/rust-postgres) (库 / 数据库)
- awesome-rust - sfackler/rust-postgres - A native [PostgreSQL](https://www.postgresql.org/) client (Libraries / Database)
- awesome-rust - sfackler/rust-postgres - ci.org/sfackler/rust-postgres.svg?branch=master">](https://travis-ci.org/sfackler/rust-postgres) (库 Libraries / 数据库 Database)
- fucking-awesome-rust - sfackler/rust-postgres - A native 🌎 [PostgreSQL](www.postgresql.org/) client (Libraries / Database)
- fucking-awesome-rust - sfackler/rust-postgres - A native 🌎 [PostgreSQL](www.postgresql.org/) client (Libraries / Database)
README
# Rust-Postgres
PostgreSQL support for Rust.
## postgres [![Latest Version](https://img.shields.io/crates/v/postgres.svg)](https://crates.io/crates/postgres)
[Documentation](https://docs.rs/postgres)
A native, synchronous PostgreSQL client.
## tokio-postgres [![Latest Version](https://img.shields.io/crates/v/tokio-postgres.svg)](https://crates.io/crates/tokio-postgres)
[Documentation](https://docs.rs/tokio-postgres)
A native, asynchronous PostgreSQL client.
## postgres-types [![Latest Version](https://img.shields.io/crates/v/postgres-types.svg)](https://crates.io/crates/postgres-types)
[Documentation](https://docs.rs/postgres-types)
Conversions between Rust and Postgres types.
## postgres-native-tls [![Latest Version](https://img.shields.io/crates/v/postgres-native-tls.svg)](https://crates.io/crates/postgres-native-tls)
[Documentation](https://docs.rs/postgres-native-tls)
TLS support for postgres and tokio-postgres via native-tls.
## postgres-openssl [![Latest Version](https://img.shields.io/crates/v/postgres-openssl.svg)](https://crates.io/crates/postgres-openssl)
[Documentation](https://docs.rs/postgres-openssl)
TLS support for postgres and tokio-postgres via openssl.
# Running test suite
The test suite requires postgres to be running in the correct configuration. The easiest way to do this is with docker:
1. Install `docker` and `docker-compose`.
1. On ubuntu: `sudo apt install docker.io docker-compose`.
1. Make sure your user has permissions for docker.
1. On ubuntu: ``sudo usermod -aG docker $USER``
1. Change to top-level directory of `rust-postgres` repo.
1. Run `docker-compose up -d`.
1. Run `cargo test`.
1. Run `docker-compose stop`.