SingleStore Extension Commands

SingleStore extension commands are custom commands unique to SingleStore Kai. You can run the following extension commands using a SingleStore Kai-enabled endpoint.

Function

Description

createCollection

Creates a new collection.

createIndexes

Creates indexes on MongoDB® collections.

createLink

Creates a new link used to connect with remote MongoDB® instances.

createView

Creates a non-materialized view.

dotProduct

Returns the scalar product of two vector inputs.

dropLink

Deletes a link created using the createLink command.

euclideanDistance

Returns the scalar Euclidean distance between two vector inputs.

getDefaultCollectionOptions

Returns the defaults that are used when a collection is created implicitly by a write command.

merge

Writes the result of an aggregation pipeline to a specified collection.

setDefaultCollectionOptions

Sets the defaults that are used when a collection is created implicitly by a write command.

sql

Runs the specified SQL statement.

vectorSearch

Performs an approximate nearest neighbor (ANN) vector search.

In this section

Last modified: August 9, 2024

Was this article helpful?