This commit is contained in:
Billy Chan 2022-09-15 16:18:13 +08:00
parent 0d31a012cc
commit 7c591049be
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -2,6 +2,18 @@ pub mod common;
use sea_orm::{IntoActiveValue, TryFromU64, TryGetable, Value};
/*
When supporting a new type in SeaORM we should implement the following traits for it:
- `IntoActiveValue`, given that it implemented `Into<Value>` already
- `TryGetable`
- `TryFromU64`
Also, we need to update `impl FromQueryResult for JsonValue` at `src/query/json.rs`
to correctly serialize the type as `serde_json::Value`.
*/
pub fn it_impl_into_active_value<T: IntoActiveValue<V>, V: Into<Value>>() {}
pub fn it_impl_try_getable<T: TryGetable>() {}