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
|
||||
[features]
|
||||
default = ["compat"]
|
||||
compat = ["sea-orm/postgres-array"]
|
||||
default = ["legacy"]
|
||||
legacy = ["sea-orm/postgres-array"]
|
||||
|
||||
[dependencies]
|
||||
async-trait = "0.1.68"
|
||||
|
@ -16,7 +16,7 @@ pub struct JsonStringVec(pub Vec<String>);
|
||||
impl_json_newtype!(JsonStringVec);
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "compat")] {
|
||||
if #[cfg(feature = "legacy")] {
|
||||
pub type StringVec = Vec<String>;
|
||||
} else {
|
||||
pub type StringVec = JsonStringVec;
|
||||
|
Loading…
Reference in New Issue
Block a user