Skip to content

Commit

Permalink
gate behind planetscale feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ammubhave committed Oct 21, 2024
1 parent 0cf05c4 commit 039a1de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ discovery = ["futures", "parser"]
parser = ["query"]
query = ["def"]
writer = ["def"]
planetscale = []
probe = ["query"]
sqlx-dep = ["sqlx"]
sqlx-all = ["sqlx-mysql", "sqlx-postgres", "sqlx-sqlite"]
Expand Down
1 change: 1 addition & 0 deletions src/mysql/def/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ pub enum IndexType {
RTree,
#[iden = "SPATIAL"]
Spatial,
#[cfg(feature = "planetscale")]
#[iden = "VECTOR"]
Vector,
}
1 change: 1 addition & 0 deletions src/mysql/writer/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ impl IndexInfo {
self.idx_type.to_string(),
))));
}
#[cfg(feature = "planetscale")]
IndexType::Vector => {
index.index_type(sea_query::IndexType::Custom(SeaRc::new(Alias::new(
self.idx_type.to_string(),
Expand Down

0 comments on commit 039a1de

Please sign in to comment.