class Qdrant::Api::Collections::Snapshots

Defined in:

qdrant-api/api/collections/snapshots.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(conn : Connection) #

[View source]

Instance Method Detail

def create(collection_name : String, *, wait : Bool | Nil = nil) : Response(Qdrant::Api::CreateSnapshot200Response) #

Create collection snapshot Create new snapshot for a collection


[View source]
def delete(collection_name : String, snapshot_name : String, *, wait : Bool | Nil = nil) : Response(Qdrant::Api::RecoverFromUploadedSnapshot200Response) #

Delete collection snapshot Delete snapshot for a collection


[View source]
def get(collection_name : String, snapshot_name : String) : Response(File) #

Download collection snapshot Download specified snapshot from a collection as a file


[View source]
def list(collection_name : String) : Response(Qdrant::Api::ListSnapshots200Response) #

List collection snapshots Get list of snapshots for a collection


[View source]
def recover(collection_name : String, snapshot_recover : Qdrant::Api::SnapshotRecover | Nil = nil, *, wait : Bool | Nil = nil) : Response(Qdrant::Api::RecoverFromUploadedSnapshot200Response) #

Recover from a snapshot Recover local collection data from a snapshot. This will overwrite any data, stored on this node, for the collection. If collection does not exist - it will be created.


[View source]
def upload(collection_name : String, snapshot : File | Nil = nil, *, wait : Bool | Nil = nil, priority : Qdrant::Api::SnapshotPriority | Nil = nil, checksum : String | Nil = nil) : Response(Qdrant::Api::RecoverFromUploadedSnapshot200Response) #

Recover from an uploaded snapshot Recover local collection data from an uploaded snapshot. This will overwrite any data, stored on this node, for the collection. If collection does not exist - it will be created.


[View source]