The errors introduced in v0.6.2 - v0.6.4 got fixed. Big thanks to nicoulaj for his contribution
Due to error fixing for the Windows OS console some errors where introduced on other platforms. Please use a newer version to prevent getting those errors.
- Timeout can now be disabled through setting PgSettings{.., timeout: None}
- PgSettings timeout attribute has been change to Option (description above)
- Extracted command execution
- Fixed: Concurrent PgEmbed instances trying to acquire pg resources simultaneously
- Password was created at wrong destination
- stopping db on drop fix
- PgEmbed's stop_db() did not execute on drop
- Multiple concurrent PgEmbed instances tried each to download the same resources when being setup
Caching postgresql binaries
Removed executables_dir attribute from PgSettings
The downloaded postgresql binaries are now cached in the following directories:
On Linux:
$XDG_CACHE_HOME/pg-embed
or
$HOME/.cache/pg-embed
On Windows:
{FOLDERID_LocalAppData}/pg-embed
On MacOS:
$HOME/Library/Caches/pg-embed
Binaries download only happens if cached binaries are not found
Cleaner logging
Logging is now done with the log crate.
In order to produce log output a logger implementation compatible with the facade has to be used.
See https://crates.io/crates/log for detailed info
PgSettings executables_dir attribute has been removed (described above).
❤️ - Big thanks to nicoulaj for his contribution
- migrator fix
- updated documentation
- updated documentation
- changed file path vars from String to PathBuf
- password authentication
added authentication methods to PgSettings
Setting the auth_method property of PgSettings to one of the following values will determine the authentication method:
PgAuthMethod::Plain
Plain-Text password
PgAuthMethod::Md5
Md5 password hash
PgAuthMethod::ScramSha256
Sha256 password hash
PgSettings has a new property called auth_method (described above).
This property has to be set.
- documentation updates
added cargo features
rt_tokio (build with tokio async runtime and without sqlx db migration support)
rt_tokio_migrate (build with tokio async runtime and sqlx db migration support)
- added sqlx
- added start timeout
- added PgEmbed::create_database(name)
- added port setting to PgSettings
- switched from async-std to tokio
- switched from surf to reqwest