make sqlite compat

This commit is contained in:
Namekuji 2023-05-31 18:21:57 -04:00
parent 354ece6432
commit 6178593e22
No known key found for this signature in database
GPG Key ID: B541BD6E646CABC7
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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;