Finally, simply use your type as a request guard in a handler to retrieve a connection to a given database: #[database("my_db")] struct MyDatabase(diesel:: ...
確定! 回上一頁