File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
use std:: ops:: { Deref , DerefMut } ;
2
2
3
3
use serde:: { Deserialize , Serialize } ;
4
- use serde_json:: value:: RawValue as JsonRawValue ;
5
- use serde_json:: Value as JsonValue ;
4
+ pub use serde_json:: value:: RawValue as JsonRawValue ;
5
+ pub use serde_json:: Value as JsonValue ;
6
6
7
7
use crate :: database:: { Database , HasArguments , HasValueRef } ;
8
8
use crate :: decode:: Decode ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ pub mod mac_address {
83
83
}
84
84
85
85
#[ cfg( feature = "json" ) ]
86
- pub use json:: Json ;
86
+ pub use json:: { Json , JsonRawValue , JsonValue } ;
87
87
88
88
/// Indicates that a SQL type is supported for a database.
89
89
///
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl_database_ext! {
51
51
sqlx:: types:: Decimal ,
52
52
53
53
#[ cfg( feature = "json" ) ]
54
- serde_json :: Value ,
54
+ sqlx :: types :: JsonValue ,
55
55
} ,
56
56
ParamChecking :: Weak ,
57
57
feature-types: info => info. __type_feature_gate( ) ,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ impl_database_ext! {
69
69
sqlx:: types:: mac_address:: MacAddress ,
70
70
71
71
#[ cfg( feature = "json" ) ]
72
- serde_json :: Value ,
72
+ sqlx :: types :: JsonValue ,
73
73
74
74
#[ cfg( feature = "bit-vec" ) ]
75
75
sqlx:: types:: BitVec ,
@@ -128,7 +128,7 @@ impl_database_ext! {
128
128
Vec <sqlx:: types:: mac_address:: MacAddress > | & [ sqlx:: types:: mac_address:: MacAddress ] ,
129
129
130
130
#[ cfg( feature = "json" ) ]
131
- Vec <serde_json :: Value > | & [ serde_json :: Value ] ,
131
+ Vec <sqlx :: types :: JsonValue > | & [ sqlx :: types :: JsonValue ] ,
132
132
133
133
// Ranges
134
134
You can’t perform that action at this time.
0 commit comments