Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/base/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,16 @@ pub struct IndexOptions {
pub vector_indexes: Vec<VectorIndexDef>,
}

impl IndexOptions {
pub fn primary_key_fields(&self) -> Result<&[FieldName]> {
Ok(self
.primary_key_fields
.as_ref()
.ok_or(api_error!("Primary key fields are not set"))?
.as_ref())
}
}

impl fmt::Display for IndexOptions {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let primary_keys = self
Expand Down
3 changes: 2 additions & 1 deletion src/ops/storages/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
mod shared;

pub mod neo4j;
pub mod postgres;
pub mod qdrant;
pub mod shared;
Loading