make sqlite compat
This commit is contained in:
parent
354ece6432
commit
6178593e22
@ -5,8 +5,8 @@ edition = "2021"
|
|||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
[features]
|
[features]
|
||||||
default = ["compat"]
|
default = ["legacy"]
|
||||||
compat = ["sea-orm/postgres-array"]
|
legacy = ["sea-orm/postgres-array"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-trait = "0.1.68"
|
async-trait = "0.1.68"
|
||||||
|
@ -16,7 +16,7 @@ pub struct JsonStringVec(pub Vec<String>);
|
|||||||
impl_json_newtype!(JsonStringVec);
|
impl_json_newtype!(JsonStringVec);
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(feature = "compat")] {
|
if #[cfg(feature = "legacy")] {
|
||||||
pub type StringVec = Vec<String>;
|
pub type StringVec = Vec<String>;
|
||||||
} else {
|
} else {
|
||||||
pub type StringVec = JsonStringVec;
|
pub type StringVec = JsonStringVec;
|
||||||
|
Loading…
Reference in New Issue
Block a user