implement create index

This commit is contained in:
mpostma
2021-02-08 10:47:34 +01:00
parent ed44e684cc
commit ec047eefd2
5 changed files with 69 additions and 22 deletions

View File

@ -125,6 +125,11 @@ impl Data {
.find(|i| i.name == name.as_ref()))
}
pub fn create_index(&self, name: impl AsRef<str>, primary_key: Option<impl AsRef<str>>) -> anyhow::Result<IndexMetadata> {
let meta = self.index_controller.create_index(name, primary_key)?;
Ok(meta)
}
#[inline]
pub fn http_payload_size_limit(&self) -> usize {
self.options.http_payload_size_limit.get_bytes() as usize