diff options
| author | Jokler <jokler@protonmail.com> | 2020-06-23 16:26:07 +0200 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-06-23 16:26:07 +0200 |
| commit | fc7bd403bf41d724bd8dc3bf3b827c592c539171 (patch) | |
| tree | 1b816f68f1793dc8bf70e490196da6ae58d6f16a /src/model.rs | |
| download | rgit-master.tar.gz rgit-master.zip | |
Diffstat (limited to 'src/model.rs')
| -rw-r--r-- | src/model.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/model.rs b/src/model.rs new file mode 100644 index 0000000..3409910 --- /dev/null +++ b/src/model.rs @@ -0,0 +1,10 @@ +use actix::{Actor, SyncContext}; +use diesel::mysql::MysqlConnection; +use r2d2::Pool; +use r2d2_diesel::ConnectionManager; + +pub struct DbExecutor(pub Pool<ConnectionManager<MysqlConnection>>); + +impl Actor for DbExecutor { + type Context = SyncContext<Self>; +} |
