File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 13
13
Install and run a PostgreSQL database locally on Linux, MacOS or Windows. PostgreSQL can be
14
14
bundled with your application, or downloaded on demand.
15
15
16
+ This library provides an embedded-like experience for PostgreSQL similar to what you would have with
17
+ SQLite. This is accomplished by downloading and installing PostgreSQL during runtime. There is
18
+ also a "bundled" feature that when enabled, will download the PostgreSQL installation archive at
19
+ compile time, include it in your binary and install from the binary version at runtime.
20
+ In either case, PostgreSQL will run in a separate process space.
21
+
22
+ ## Features
23
+
24
+ - installing and running PostgreSQL
25
+ - running PostgreSQL on ephemeral ports
26
+ - async and blocking API
27
+ - bundling the PostgreSQL archive in an executable
28
+ - dynamic version resolution
29
+ - ability to configure PostgreSQL startup options
30
+ - URL based configuration
31
+ - choice of native-tls vs rustls
32
+
16
33
## Getting Started
17
34
18
35
### Example
Original file line number Diff line number Diff line change 11
11
Install and run a PostgreSQL database locally on Linux, MacOS or Windows. PostgreSQL can be
12
12
bundled with your application, or downloaded on demand.
13
13
14
+ This library provides an embedded-like experience for PostgreSQL similar to what you would have with
15
+ SQLite. This is accomplished by downloading and installing PostgreSQL during runtime. There is
16
+ also a "bundled" feature that when enabled, will download the PostgreSQL installation archive at
17
+ compile time, include it in your binary and install from the binary version at runtime.
18
+ In either case, PostgreSQL will run in a separate process space.
19
+
20
+ ## Features
21
+
22
+ - installing and running PostgreSQL
23
+ - running PostgreSQL on ephemeral ports
24
+ - async and blocking API
25
+ - bundling the PostgreSQL archive in an executable
26
+ - dynamic version resolution
27
+ - ability to configure PostgreSQL startup options
28
+ - URL based configuration
29
+ - choice of native-tls vs rustls
30
+
14
31
## Examples
15
32
16
33
### Asynchronous API
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use test_log::test;
4
4
5
5
#[ test( tokio:: test) ]
6
6
async fn lifecycle ( ) -> anyhow:: Result < ( ) > {
7
- // Explicitly set PGDATABASE environment variables to verify that the library behavior
7
+ // Explicitly set PGDATABASE environment variable to verify that the library behavior
8
8
// is not affected by the environment
9
9
env:: set_var ( "PGDATABASE" , "foodb" ) ;
10
10
You can’t perform that action at this time.
0 commit comments