diff options
author | Teddy Wing | 2018-11-09 18:52:57 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-09 18:52:57 +0100 |
commit | e8aa1429fa45957a2174446df64b62d407544d8b (patch) | |
tree | bb09f8022e01d4964bd2d64172a37fa17cd3c52c /license-generator/src/errors.rs | |
parent | f6f3c978630df1514e3eefc4f13492cb1d61f83e (diff) | |
download | dome-key-web-e8aa1429fa45957a2174446df64b62d407544d8b.tar.bz2 |
Add `get_database_connection()`
Function to establish a database connection using a connection pool.
Update `Purchaser::insert()` to take a `PooledConn` instead of a simple
`Conn`.
Diffstat (limited to 'license-generator/src/errors.rs')
-rw-r--r-- | license-generator/src/errors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/license-generator/src/errors.rs b/license-generator/src/errors.rs index 7eb9eda..29f25ca 100644 --- a/license-generator/src/errors.rs +++ b/license-generator/src/errors.rs @@ -2,6 +2,8 @@ use mysql; error_chain! { foreign_links { + EnvVar(::std::env::VarError); + MySql(mysql::error::Error); } } |